Skip to content

Commit

Permalink
use modern hash syntax
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan Krage <[email protected]>
  • Loading branch information
rkrage and Ryan Krage committed Nov 17, 2023
1 parent c72c53a commit e668a5c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/safe_statements_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,11 @@ def up

indexes = ActiveRecord::Base.connection.indexes("foos")
expect(indexes.size).to eq(1)
expect(indexes.first).to have_attributes(:table => "foos", :name => "index_foos_on_bar", :columns => ["bar"])
expect(indexes.first).to have_attributes(
table: "foos",
name: "index_foos_on_bar",
columns: ["bar"],
)
end

it "raises error when table contains rows" do
Expand Down

0 comments on commit e668a5c

Please sign in to comment.