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
rspec-core-2.9.0.rc2 spec/autotest/discover_spec.rb
horseman-0.0.4 vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/autotest/discover_spec.rb
horseman-0.0.4 vendor/ruby/1.9.1/gems/rspec-core-2.7.1/spec/autotest/discover_spec.rb
horseman-0.0.3 vendor/ruby/1.9.1/gems/rspec-core-2.7.1/spec/autotest/discover_spec.rb
horseman-0.0.3 vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/autotest/discover_spec.rb
horseman-0.0.2 vendor/ruby/1.9.1/gems/rspec-core-2.7.1/spec/autotest/discover_spec.rb
rspec-core-2.8.0 spec/autotest/discover_spec.rb
nutshell-crm-0.0.6.alpha vendor/bundle/gems/rspec-core-2.7.1/spec/autotest/discover_spec.rb
rspec-core-2.8.0.rc2 spec/autotest/discover_spec.rb
nutshell-crm-0.0.5 vendor/bundle/gems/rspec-core-2.7.1/spec/autotest/discover_spec.rb
nutshell-crm-0.0.4 vendor/bundle/gems/rspec-core-2.7.1/spec/autotest/discover_spec.rb
nutshell-crm-0.0.3 vendor/bundle/gems/rspec-core-2.7.1/spec/autotest/discover_spec.rb
nutshell-crm-0.0.2 vendor/bundle/gems/rspec-core-2.7.1/spec/autotest/discover_spec.rb
nutshell-crm-0.0.1 vendor/bundle/gems/rspec-core-2.7.1/spec/autotest/discover_spec.rb
rspec-core-2.8.0.rc1 spec/autotest/discover_spec.rb
rspec-core-2.7.1 spec/autotest/discover_spec.rb
rspec-core-2.7.0 spec/autotest/discover_spec.rb
rspec-core-2.7.0.rc1 spec/autotest/discover_spec.rb