File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ def file
121
121
122
122
it "finds a template inside the source path" do
123
123
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./ )
125
125
126
126
new_path = File . join ( source_root , "doc" )
127
127
runner . instance_variable_set ( :@source_paths , nil )
Original file line number Diff line number Diff line change 28
28
end
29
29
30
30
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'/ )
32
32
end
33
33
34
34
it "raises an error when a Thor group command expects arguments" do
You can’t perform that action at this time.
0 commit comments