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
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/autotest/discover_spec.rb
vagrant-unbundled-1.9.5.1 vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/autotest/discover_spec.rb
vagrant-unbundled-1.9.1.1 vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/autotest/discover_spec.rb
vagrant-unbundled-1.8.5.2 vendor/bundle/ruby/2.3.0/gems/rspec-core-2.14.8/spec/autotest/discover_spec.rb
vagrant-unbundled-1.8.5.1 vendor/bundle/ruby/2.3.0/gems/rspec-core-2.14.8/spec/autotest/discover_spec.rb
vagrant-unbundled-1.8.4.2 vendor/bundle/ruby/2.3.0/gems/rspec-core-2.14.8/spec/autotest/discover_spec.rb
vagrant-unbundled-1.8.4.1 vendor/bundle/ruby/2.3.0/gems/rspec-core-2.14.8/spec/autotest/discover_spec.rb
vagrant-unbundled-1.8.1.1 vendor/bundle/ruby/2.3.0/gems/rspec-core-2.14.8/spec/autotest/discover_spec.rb
classiccms-0.7.5 vendor/bundle/gems/rspec-core-2.10.0/spec/autotest/discover_spec.rb
classiccms-0.7.5 vendor/bundle/gems/rspec-core-2.9.0/spec/autotest/discover_spec.rb
classiccms-0.7.4 vendor/bundle/gems/rspec-core-2.9.0/spec/autotest/discover_spec.rb
classiccms-0.7.4 vendor/bundle/gems/rspec-core-2.10.0/spec/autotest/discover_spec.rb
classiccms-0.7.3 vendor/bundle/gems/rspec-core-2.9.0/spec/autotest/discover_spec.rb
classiccms-0.7.3 vendor/bundle/gems/rspec-core-2.10.0/spec/autotest/discover_spec.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/rspec-core-2.14.8/spec/autotest/discover_spec.rb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/rspec-core-2.13.0/spec/autotest/discover_spec.rb
dxruby_rp5-0.0.4 spec/vendor/rspec-core-2.14.7/spec/autotest/discover_spec.rb
rspec-core-2.14.8 spec/autotest/discover_spec.rb
rspec-core-2.99.0.beta2 spec/autotest/discover_spec.rb
mango-0.8.0 vendor/bundler/ruby/2.1.0/gems/rspec-core-2.14.7/spec/autotest/discover_spec.rb