Sha256: 6be5684ff2817f685606ba97e817921d90fbc09c7e6e2b25fbb3d9fb5ed7e4ca

Contents?: true

Size: 616 Bytes

Versions: 16

Compression:

Stored size: 616 Bytes

Contents

module Spec
  module Mocks
    module ArgumentConstraintMatchers
      
      # Shortcut for creating an instance of Spec::Mocks::DuckTypeArgConstraint
      def duck_type(*args)
        DuckTypeArgConstraint.new(*args)
      end

      def any_args
        AnyArgsConstraint.new
      end
      
      def anything
        AnyArgConstraint.new(nil)
      end
      
      def boolean
        BooleanArgConstraint.new(nil)
      end
      
      def hash_including(expected={})
        HashIncludingConstraint.new(expected)
      end
      
      def no_args
        NoArgsConstraint.new
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 4 rubygems

Version Path
jnstq-acts_as_sms-0.1.0 test/vendor/plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb
jnstq-acts_as_sms-0.1.1 test/vendor/plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb
jnstq-acts_as_sms-0.1.3 test/vendor/plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb
jnstq-acts_as_sms-0.1.4 test/vendor/plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb
radiant-0.6.5.1 vendor/plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb
radiant-0.6.5 vendor/plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb
radiant-0.6.7 vendor/plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb
radiant-0.6.6 vendor/plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb
radiant-0.6.9 vendor/plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb
radiant-0.6.8 vendor/plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb
rspec-0.0.10 lib/spec/mocks/argument_constraint_matchers.rb
rspec-1.1.4 lib/spec/mocks/argument_constraint_matchers.rb
spree-0.4.1 vendor/plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb
spree-0.4.0 vendor/plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb
spree-0.5.0 vendor/plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb
spree-0.5.1 vendor/plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb