test/commands/add/location_spec.rb in friends-0.37 vs test/commands/add/location_spec.rb in friends-0.38

- old
+ new

@@ -5,9 +5,17 @@ clean_describe "add location" do subject { run_cmd("add location #{location_name}") } let(:content) { CONTENT } + describe "when location name is blank" do + let(:location_name) { "' '" } + + it "prints an error message" do + stderr_only 'Error: Expected "[Location Name]"' + end + end + describe "when there is an existing location with that name" do let(:location_name) { "Paris" } it "prints an error message" do stderr_only 'Error: Location "Paris" already exists'