Skip to content

Commit

Permalink
Fix nonspecific raise assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDaugherty committed Feb 26, 2020
1 parent 93e7967 commit a93e641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/better_errors/stack_frame_spec.rb
Expand Up @@ -97,7 +97,7 @@ module BetterErrors
it "raises on non-NameErrors" do
frame = StackFrame.new("/abc/xyz/app/controllers/crap_controller.rb", 123, "index")
allow(frame).to receive(:get_local_variable).and_raise(ArgumentError)
expect { frame.local_variable("foo") }.to raise_error
expect { frame.local_variable("foo") }.to raise_error(ArgumentError)
end
end

Expand Down

0 comments on commit a93e641

Please sign in to comment.