Sha256: c8e863eaed25035b6424f3e1adc49ff5f7fff4e7e482d861335693a2c7bfb37c

Contents?: true

Size: 509 Bytes

Versions: 35

Compression:

Stored size: 509 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 no_args
        NoArgsConstraint.new
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 7 rubygems

Version Path
deckshuffler-0.0.2 vendor/plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb
has_finder-0.1.1 spec/rails/vendor/plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb
has_finder-0.1.2 spec/rails/vendor/plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb
has_finder-0.1.3 spec/rails/vendor/plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb
picolena-0.0.99 app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb
picolena-0.1.1 rails_plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb
picolena-0.1.0 rails_plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb
picolena-0.1.4 rails_plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb
picolena-0.1.2 rails_plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb
picolena-0.1.3 rails_plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb
picolena-0.1.5 rails_plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb
radiant-0.6.5.1 vendor/plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb.orig
radiant-0.6.5 vendor/plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb.orig
radiant-0.6.6 vendor/plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb.orig
radiant-0.6.7 vendor/plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb.orig
radiant-0.6.9 vendor/plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb.orig
radiant-0.6.8 vendor/plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb.orig
rspec-1.0.5 lib/spec/mocks/argument_constraint_matchers.rb
rspec-1.1.0 lib/spec/mocks/argument_constraint_matchers.rb
rspec-1.0.6 lib/spec/mocks/argument_constraint_matchers.rb