Skip to content
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

Commit 4a314d6

Browse files
committed
Updated spec to reflect that missing config raises error
1 parent f4a149b commit 4a314d6

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

spec/lib/buff/setup_spec.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,12 @@
99
it "sets the default path" do
1010
expect(setup.path).to eq("~/.bufferapprc")
1111
end
12+
end
13+
context "verifies whether rc file exists" do
1214
it "fails with error when specified file not found" do
1315
lambda { bad_config_setup.path }.should
1416
raise_error(Buff::Error::ConfigFileMissing)
1517
end
16-
end
17-
context "verifies whether rc file exists" do
18-
it "documents when rc file not present" do
19-
expect(bad_config_setup.exists?).to eq(false)
20-
end
2118
it "documents when rc file is present" do
2219
expect(setup.exists?).to eq(true)
2320
end

0 commit comments

Comments
 (0)