Skip to content

Commit c73e973

Browse files
committed
Fix RSpec warnings
1 parent 06dade7 commit c73e973

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/actions_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def file
121121

122122
it "finds a template inside the source path" do
123123
expect(runner.find_in_source_paths("doc")).to eq(File.expand_path("doc", source_root))
124-
expect { runner.find_in_source_paths("README") }.to raise_error
124+
expect { runner.find_in_source_paths("README") }.to raise_error(Thor::Error, /Could not find "README" in any of your source paths./)
125125

126126
new_path = File.join(source_root, "doc")
127127
runner.instance_variable_set(:@source_paths, nil)

spec/group_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
end
2929

3030
it "raises when an exception happens within the command call" do
31-
expect { BrokenCounter.start(%w[1 2 --fail]) }.to raise_error
31+
expect { BrokenCounter.start(%w[1 2 --fail]) }.to raise_error(NameError, /undefined local variable or method `this_method_does_not_exist'/)
3232
end
3333

3434
it "raises an error when a Thor group command expects arguments" do

0 commit comments

Comments
 (0)