summaryrefslogtreecommitdiff
path: root/spec/migrations
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2017-09-06 11:36:22 +0100
committerRuben Davila <rdavila84@gmail.com>2017-09-06 12:57:30 -0500
commit1245cccf689b7ac47f36097c3d2350a411743921 (patch)
treef0d2b5f9cb62ca4368ad39ba2eafc18d77fa55f0 /spec/migrations
parentcd84ce1a1b131edc500684f697798df401a69469 (diff)
downloadgitlab-ce-1245cccf689b7ac47f36097c3d2350a411743921.tar.gz
Use `table` helper in migration specs
Diffstat (limited to 'spec/migrations')
-rw-r--r--spec/migrations/convert_custom_notification_settings_to_columns_spec.rb6
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
[