Sha256: 33d044cc4c3ea86da58861266b92585b74402d6393a74452cf37175442e554dd

Contents?: true

Size: 469 Bytes

Versions: 10

Compression:

Stored size: 469 Bytes

Contents

require 'spec_helper'

# Some gems that are actually compatible with RSpec 1 define RSpec,
# so make sure we don't detect on that.
module ::RSpec
end

describe RSpecCandy::Switcher do

  describe "#rspec_version" do

    it "should detect rspec1" do
      RSpecCandy::Switcher.rspec_version.should == :rspec1
    end

  end

  describe '#rspec_root' do

    it 'should return the Spec module' do
      RSpecCandy::Switcher.rspec_root.should == Spec
    end

  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rspec_candy-0.3.1 spec/rspec1/spec/switcher_spec.rb
rspec_candy-0.3.0 spec/rspec1/spec/switcher_spec.rb
rspec_candy-0.2.10 spec/rspec1/spec/switcher_spec.rb
rspec_candy-0.2.9 spec/rspec1/spec/switcher_spec.rb
rspec_candy-0.2.8 spec/rspec1/spec/switcher_spec.rb
rspec_candy-0.2.7 spec/rspec1/spec/switcher_spec.rb
rspec_candy-0.2.6 spec/rspec1/spec/switcher_spec.rb
rspec_candy-0.2.5 spec/rspec1/spec/switcher_spec.rb
rspec_candy-0.2.4 spec/rspec1/spec/switcher_spec.rb
rspec_candy-0.2.3 spec/rspec1/spec/switcher_spec.rb