Sha256: 9a8c471146857d1d6120f51d93a2b283ae20636a57a0e0120445c2383cfdeaef

Contents?: true

Size: 987 Bytes

Versions: 28

Compression:

Stored size: 987 Bytes

Contents

require 'spec_helper'

module Test
  module Unit
    class TestCase
    end
  end
end

module MiniTest
  module Unit
    class TestCase
    end
  end
end

module RSpec
  describe Matchers do

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

    context "once required" do

      before(:all) do
        path = File.expand_path("../../../../#{path}", __FILE__)
        load File.join(path, 'lib/rspec/matchers.rb')
      end

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

      it "includes itself in MiniTest::Unit::TestCase" do
        minitest_case = MiniTest::Unit::TestCase.new
        sample_matchers.each do |sample_matcher|
            minitest_case.should respond_to(sample_matcher)
        end
      end

    end

  end
end

Version data entries

28 entries across 28 versions & 4 rubygems

Version Path
messagebus_ruby_api-0.4.7 spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/matchers_spec.rb
messagebus_ruby_api-0.4.4 spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/matchers_spec.rb
rspec-expectations-2.5.0 spec/rspec/matchers/matchers_spec.rb
vim-jar-0.1.2.0001 bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/matchers/matchers_spec.rb
rspec-expectations-2.4.0 spec/rspec/matchers/matchers_spec.rb
vim-jar-0.1.2 bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/matchers/matchers_spec.rb
vim-jar-0.1.1 bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/matchers/matchers_spec.rb
vim-jar-0.1.0 bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/matchers/matchers_spec.rb
rspec-expectations-2.3.0 spec/rspec/matchers/matchers_spec.rb
vim-jar-0.0.3 bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/matchers/matchers_spec.rb
vim-jar-0.0.2 bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/matchers/matchers_spec.rb
vim-jar-0.0.1 bundler/ruby/1.8/gems/rspec-expectations-2.1.0/spec/rspec/matchers/matchers_spec.rb
rspec-expectations-2.2.0 spec/rspec/matchers/matchers_spec.rb
rspec-expectations-2.1.0 spec/rspec/matchers/matchers_spec.rb
rspec-expectations-2.0.1 spec/rspec/matchers/matchers_spec.rb
gemrage-1.0.0 vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/rspec/matchers/matchers_spec.rb
gemrage-0.4.1 vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/rspec/matchers/matchers_spec.rb
gemrage-0.4.0 vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/rspec/matchers/matchers_spec.rb
gemrage-0.3.2 vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/rspec/matchers/matchers_spec.rb
gemrage-0.3.1 vendor/ruby/1.8/gems/rspec-expectations-2.0.0/spec/rspec/matchers/matchers_spec.rb