diff options
author | Sean McGivern <sean@gitlab.com> | 2017-09-06 13:36:22 +0300 |
---|---|---|
committer | Ruben Davila <rdavila84@gmail.com> | 2017-09-06 20:57:30 +0300 |
commit | 1245cccf689b7ac47f36097c3d2350a411743921 (patch) | |
tree | f0d2b5f9cb62ca4368ad39ba2eafc18d77fa55f0 /spec/migrations | |
parent | cd84ce1a1b131edc500684f697798df401a69469 (diff) |
Use `table` helper in migration specs
Diffstat (limited to 'spec/migrations')
-rw-r--r-- | spec/migrations/convert_custom_notification_settings_to_columns_spec.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/spec/migrations/convert_custom_notification_settings_to_columns_spec.rb b/spec/migrations/convert_custom_notification_settings_to_columns_spec.rb index 02312ddbf8a..759e77ac9db 100644 --- a/spec/migrations/convert_custom_notification_settings_to_columns_spec.rb +++ b/spec/migrations/convert_custom_notification_settings_to_columns_spec.rb @@ -2,11 +2,7 @@ require 'spec_helper' require Rails.root.join('db', 'post_migrate', '20170607121233_convert_custom_notification_settings_to_columns') describe ConvertCustomNotificationSettingsToColumns, :migration do - let(:user_class) do - Class.new(ActiveRecord::Base) do - self.table_name = 'users' - end - end + let(:user_class) { table(:users) } let(:settings_params) do [ |