Skip to content

Commit

Permalink
Fix rspec warnings about error expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
elia committed Sep 27, 2023
1 parent 848bf9f commit a7dd17b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/spec/lib/spree/migration_helpers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
context "when the column exists" do
context "and the index does" do
it "passes compatible arguments to index_exists?" do
expect { subject }.to_not raise_error(ArgumentError)
expect { subject }.to raise_error(NotImplementedError) # not ArgumentError
end
end

Expand All @@ -27,7 +27,7 @@
end

it "passes compatible arguments to add_index" do
expect { subject }.to_not raise_error(ArgumentError)
expect { subject }.to raise_error(TypeError) # not ArgumentError
end
end
end
Expand Down

0 comments on commit a7dd17b

Please sign in to comment.