summaryrefslogtreecommitdiff
path: root/spec/lib
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/lib
parentcd84ce1a1b131edc500684f697798df401a69469 (diff)
downloadgitlab-ce-1245cccf689b7ac47f36097c3d2350a411743921.tar.gz
Use `table` helper in migration specs
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/gitlab/background_migration/migrate_events_to_push_event_payloads_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/lib/gitlab/background_migration/migrate_events_to_push_event_payloads_spec.rb b/spec/lib/gitlab/background_migration/migrate_events_to_push_event_payloads_spec.rb
index f718339ca12..71141e38b5d 100644
--- a/spec/lib/gitlab/background_migration/migrate_events_to_push_event_payloads_spec.rb
+++ b/spec/lib/gitlab/background_migration/migrate_events_to_push_event_payloads_spec.rb
@@ -222,6 +222,7 @@ describe Gitlab::BackgroundMigration::MigrateEventsToPushEventPayloads, :migrati
end
let(:migration) { described_class.new }
+ let(:user_class) { table(:users) }
let(:author) { build(:user).becomes(user_class).tap(&:save!).becomes(User) }
let(:namespace) { create(:namespace, owner: author) }
let(:project) { create(:project_empty_repo, namespace: namespace, creator: author) }