spec/gush_spec.rb in gush-0.4.1 vs spec/gush_spec.rb in gush-1.0.0
- old
+ new
@@ -2,19 +2,19 @@
describe Gush do
describe ".gushfile" do
let(:path) { Pathname("/tmp/Gushfile.rb") }
- context "Gushfile.rb is missing from pwd" do
- it "raises an exception" do
+ context "Gushfile is missing from pwd" do
+ it "returns nil" do
path.delete if path.exist?
Gush.configuration.gushfile = path
- expect { Gush.gushfile }.to raise_error(Errno::ENOENT)
+ expect(Gush.gushfile).to eq(nil)
end
end
- context "Gushfile.rb exists" do
+ context "Gushfile exists" do
it "returns Pathname to it" do
FileUtils.touch(path)
Gush.configuration.gushfile = path
expect(Gush.gushfile).to eq(path.realpath)
path.delete