Sha256: 7997c2b75a59979da2fcd0a7ee057c5d890ffcbf2f6cf9ce646e5846ce5da071

Contents?: true

Size: 309 Bytes

Versions: 14

Compression:

Stored size: 309 Bytes

Contents

module Rspec
  module Matchers
    module DSL
      # See Rspec::Matchers
      def define(name, &declarations)
        define_method name do |*expected|
          Rspec::Matchers::Matcher.new name, *expected, &declarations
        end
      end
    end
  end
end

Rspec::Matchers.extend Rspec::Matchers::DSL

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rspec-expectations-2.0.0.beta.4 lib/rspec/matchers/dsl.rb
rspec-expectations-2.0.0.beta.3 lib/rspec/matchers/dsl.rb
rspec-expectations-2.0.0.beta.2 lib/rspec/matchers/dsl.rb
rspec-expectations-2.0.0.beta.1 lib/rspec/matchers/dsl.rb
rspec-expectations-2.0.0.a10 lib/rspec/matchers/dsl.rb
rspec-expectations-2.0.0.a9 lib/rspec/matchers/dsl.rb
rspec-expectations-2.0.0.a8 lib/rspec/matchers/dsl.rb
rspec-expectations-2.0.0.a7 lib/rspec/matchers/dsl.rb
rspec-expectations-2.0.0.a6 lib/rspec/matchers/dsl.rb
rspec-expectations-2.0.0.a5 lib/rspec/matchers/dsl.rb
rspec-expectations-2.0.0.a4 lib/rspec/matchers/dsl.rb
rspec-expectations-2.0.0.a3 lib/rspec/matchers/dsl.rb
rspec-expectations-2.0.0.a2 lib/rspec/matchers/dsl.rb
rspec-expectations-2.0.0.a1 lib/rspec/matchers/dsl.rb