Skip to content

Commit

Permalink
Improved alphabetize schema tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Jan 17, 2023
1 parent ec3275d commit 0111702
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/alphabetize_schema_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ def test_default
schema = dump_schema

expected_columns = <<-EOS
create_table "users", force: :cascade do |t|
t.string "name"
t.string "city"
EOS
assert_match expected_columns, schema
end
Expand All @@ -18,9 +18,8 @@ def test_enabled
end

expected_columns = <<-EOS
t.text "description"
t.string "interval"
t.string "name"
create_table "users", force: :cascade do |t|
t.string "city"
EOS
assert_match expected_columns, schema
end
Expand Down

0 comments on commit 0111702

Please sign in to comment.