Sha256: 636ecb26d32bfced517771d08e947daa80b53c6d188bc9ff3a4f5ca81063627a

Contents?: true

Size: 739 Bytes

Versions: 207

Compression:

Stored size: 739 Bytes

Contents

require 'spec_helper'

module RSpec
  describe Matchers do

    let(:sample_matchers) do
      [:be,
       :be_close,
       :be_instance_of,
       :be_kind_of]
    end

    context "once required" do
      it "includes itself in Test::Unit::TestCase" do
        test_unit_case = Test::Unit::TestCase.allocate
        sample_matchers.each do |sample_matcher|
            test_unit_case.should respond_to(sample_matcher)
        end
      end

      it "includes itself in MiniTest::Unit::TestCase", :if => defined?(MiniTest) do
        minitest_case = MiniTest::Unit::TestCase.allocate
        sample_matchers.each do |sample_matcher|
            minitest_case.should respond_to(sample_matcher)
        end
      end

    end

  end
end

Version data entries

207 entries across 106 versions & 15 rubygems

Version Path
classiccms-0.7.5 vendor/bundle/gems/rspec-expectations-2.10.0/spec/rspec/matchers/matchers_spec.rb
classiccms-0.7.5 vendor/bundle/gems/rspec-expectations-2.9.1/spec/rspec/matchers/matchers_spec.rb
classiccms-0.7.5 vendor/bundle/gems/rspec-expectations-2.9.0/spec/rspec/matchers/matchers_spec.rb
classiccms-0.7.4 vendor/bundle/gems/rspec-expectations-2.9.0/spec/rspec/matchers/matchers_spec.rb
classiccms-0.7.4 vendor/bundle/gems/rspec-expectations-2.10.0/spec/rspec/matchers/matchers_spec.rb
classiccms-0.7.4 vendor/bundle/gems/rspec-expectations-2.9.1/spec/rspec/matchers/matchers_spec.rb
classiccms-0.7.3 vendor/bundle/gems/rspec-expectations-2.9.1/spec/rspec/matchers/matchers_spec.rb
classiccms-0.7.3 vendor/bundle/gems/rspec-expectations-2.10.0/spec/rspec/matchers/matchers_spec.rb
classiccms-0.7.3 vendor/bundle/gems/rspec-expectations-2.9.0/spec/rspec/matchers/matchers_spec.rb
tnargav-1.3.3 vendor/bundle/ruby/1.9.1/gems/rspec-expectations-2.11.3/spec/rspec/matchers/matchers_spec.rb
tnargav-1.2.3 vendor/bundle/ruby/1.9.1/gems/rspec-expectations-2.11.3/spec/rspec/matchers/matchers_spec.rb
classiccms-0.7.2 vendor/bundle/gems/rspec-expectations-2.9.0/spec/rspec/matchers/matchers_spec.rb
classiccms-0.7.2 vendor/bundle/gems/rspec-expectations-2.10.0/spec/rspec/matchers/matchers_spec.rb
classiccms-0.7.2 vendor/bundle/gems/rspec-expectations-2.9.1/spec/rspec/matchers/matchers_spec.rb
classiccms-0.7.1 vendor/bundle/gems/rspec-expectations-2.9.0/spec/rspec/matchers/matchers_spec.rb
classiccms-0.7.1 vendor/bundle/gems/rspec-expectations-2.9.1/spec/rspec/matchers/matchers_spec.rb
classiccms-0.7.1 vendor/bundle/gems/rspec-expectations-2.10.0/spec/rspec/matchers/matchers_spec.rb
classiccms-0.7.0 vendor/bundle/gems/rspec-expectations-2.10.0/spec/rspec/matchers/matchers_spec.rb
classiccms-0.7.0 vendor/bundle/gems/rspec-expectations-2.9.0/spec/rspec/matchers/matchers_spec.rb
classiccms-0.7.0 vendor/bundle/gems/rspec-expectations-2.9.1/spec/rspec/matchers/matchers_spec.rb