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
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 )
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments