Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9930ff48ee
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (17 sloc) 0.61 kb
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
Jump to Line
Something went wrong with that request. Please try again.