Improve specs for accidental table/column drops and renames

This commit is contained in:
Gerhard Schlager 2018-03-21 18:06:44 +01:00 committed by Sam
parent 19c5afc69d
commit cd17f60952

View File

@ -34,6 +34,7 @@ describe Migration::SafeMigrate do
expect(output).to include("TableDropper")
expect { User.first }.not_to raise_error
expect(User.first).not_to eq(nil)
end
@ -50,6 +51,7 @@ describe Migration::SafeMigrate do
expect(output).to include("TableDropper")
expect { User.first }.not_to raise_error
expect(User.first).not_to eq(nil)
end
@ -67,6 +69,7 @@ describe Migration::SafeMigrate do
expect(output).to include("ColumnDropper")
expect(User.first).not_to eq(nil)
expect { User.first.username }.not_to raise_error
end
it "bans all column renames" do
@ -83,6 +86,7 @@ describe Migration::SafeMigrate do
expect(output).to include("ColumnDropper")
expect(User.first).not_to eq(nil)
expect { User.first.username }.not_to raise_error
end
it "supports being disabled" do