Sha256: 9c0b49fdf5fd547ae7fe3701ea9a5adea4ab3eebd50ea8c404c0aca82c84f954
Contents?: true
Size: 608 Bytes
Versions: 16
Compression:
Stored size: 608 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
16 entries across 16 versions & 2 rubygems