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