changelog shortlog tags changeset manifest revisions annotate raw

vendor/plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb

changeset 15: 64acf98d15f4
author: moriq@moriq.com
date: Mon Mar 10 10:12:58 2008 +0900 (16 years ago)
permissions: -rw-r--r--
description: add plugins rspec
1module 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
27end