Sha256: f4a80ca54b53e901e0367d747737e9fb00fd827b2ce0f6cf33033f122d6ff24f

Contents?: true

Size: 610 Bytes

Versions: 198

Compression:

Stored size: 610 Bytes

Contents

require "spec_helper"

describe "autotest/discover.rb" do
  context "with ./.rspec present" do
    it "adds 'rspec2' to the list of discoveries" do
      File.stub(:exist?).with("./.rspec") { true }
      Autotest.should_receive(:add_discovery)
      load File.expand_path("../../../lib/autotest/discover.rb", __FILE__)
    end
  end

  context "with ./.rspec absent" do
    it "does not add 'rspec2' to the list of discoveries" do
      File.stub(:exist?) { false }
      Autotest.should_not_receive(:add_discovery)
      load File.expand_path("../../../lib/autotest/discover.rb", __FILE__)
    end
  end
end

Version data entries

198 entries across 143 versions & 27 rubygems

Version Path
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/rspec-core-2.14.7/spec/autotest/discover_spec.rb
dxruby_rp5-0.0.3 spec/vendor/rspec-core-2.14.7/spec/autotest/discover_spec.rb
tuktuk-rails-0.0.10 vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/autotest/discover_spec.rb
tuktuk-rails-0.0.9 vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/autotest/discover_spec.rb
tuktuk-rails-0.0.8 vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/autotest/discover_spec.rb
tuktuk-rails-0.0.7 vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/autotest/discover_spec.rb
dxruby_rp5-0.0.2 spec/vendor/rspec-core-2.14.7/spec/autotest/discover_spec.rb
dxruby_rp5-0.0.1 spec/vendor/rspec-core-2.14.7/spec/autotest/discover_spec.rb
mango-0.7.0 vendor/bundler/ruby/2.0.0/gems/rspec-core-2.14.7/spec/autotest/discover_spec.rb
rspec-core-2.99.0.beta1 spec/autotest/discover_spec.rb
rspec-autotest-1.0.0.beta1 spec/autotest/discover_spec.rb
rspec-core-2.14.7 spec/autotest/discover_spec.rb
rspec-core-2.14.6 spec/autotest/discover_spec.rb
tnargav-1.3.3 vendor/bundle/ruby/1.9.1/gems/rspec-core-2.11.1/spec/autotest/discover_spec.rb
clickable_link-0.0.2 vendor/bundle/ruby/1.9.1/gems/rspec-core-2.14.5/spec/autotest/discover_spec.rb
syllable_counter-1.0.0 vendor/bundle/gems/rspec-core-2.14.5/spec/autotest/discover_spec.rb
rspec-core-2.14.5 spec/autotest/discover_spec.rb
rspec-core-2.14.4 spec/autotest/discover_spec.rb
rspec-core-2.14.3 spec/autotest/discover_spec.rb
tnargav-1.2.3 vendor/bundle/ruby/1.9.1/gems/rspec-core-2.11.1/spec/autotest/discover_spec.rb