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
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/autotest/discover_spec.rb
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/rspec-core-2.8.0/spec/autotest/discover_spec.rb
rspec-core-2.10.1 spec/autotest/discover_spec.rb
ftl-0.2.0 vendor/bundle/gems/rspec-core-2.10.0/spec/autotest/discover_spec.rb
classiccms-0.2.4.pre vendor/bundle/gems/rspec-core-2.10.0/spec/autotest/discover_spec.rb
classiccms-0.2.4.pre vendor/bundle/gems/rspec-core-2.9.0/spec/autotest/discover_spec.rb
rspec-core-2.10.0 spec/autotest/discover_spec.rb
horseman-0.0.5 vendor/ruby/1.9.1/gems/rspec-core-2.9.0/spec/autotest/discover_spec.rb
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/autotest/discover_spec.rb
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/autotest/discover_spec.rb
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/autotest/discover_spec.rb
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/autotest/discover_spec.rb
frameworks-capybara-0.2.0.rc2 vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/spec/autotest/discover_spec.rb
classicCMS-0.2.3 vendor/bundle/gems/rspec-core-2.9.0/spec/autotest/discover_spec.rb
classicCMS-0.2.2 vendor/bundle/gems/rspec-core-2.9.0/spec/autotest/discover_spec.rb
classicCMS-0.2.1 vendor/bundle/gems/rspec-core-2.9.0/spec/autotest/discover_spec.rb
classicCMS-0.2.0 vendor/bundle/gems/rspec-core-2.9.0/spec/autotest/discover_spec.rb
classicCMS-0.1.2 vendor/bundle/gems/rspec-core-2.9.0/spec/autotest/discover_spec.rb
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/rspec-core-2.8.0/spec/autotest/discover_spec.rb
rspec-core-2.9.0 spec/autotest/discover_spec.rb