projects
/
rails.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fixed null value bug in rake task
[rails.git]
/
vendor
/
gems
/
rspec-1.1.2
/
lib
/
spec
/
mocks
/
argument_constraint_matchers.rb
1
module Spec
2
module Mocks
3
module ArgumentConstraintMatchers
4
5
# Shortcut for creating an instance of Spec::Mocks::DuckTypeArgConstraint
6
def duck_type(*args)
7
DuckTypeArgConstraint.new(*args)
8
end
9
10
def any_args
11
AnyArgsConstraint.new
12
end
13
14
def anything
15
AnyArgConstraint.new(nil)
16
end
17
18
def boolean
19
BooleanArgConstraint.new(nil)
20
end
21
22
def no_args
23
NoArgsConstraint.new
24
end
25
end
26
end
27
end