Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
1245cccf
Commit
1245cccf
authored
Sep 06, 2017
by
Sean McGivern
Committed by
Ruben Davila
Sep 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use `table` helper in migration specs
parent
cd84ce1a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
spec/lib/gitlab/background_migration/migrate_events_to_push_event_payloads_spec.rb
...d_migration/migrate_events_to_push_event_payloads_spec.rb
+1
-0
spec/migrations/convert_custom_notification_settings_to_columns_spec.rb
...s/convert_custom_notification_settings_to_columns_spec.rb
+1
-5
No files found.
spec/lib/gitlab/background_migration/migrate_events_to_push_event_payloads_spec.rb
View file @
1245cccf
...
...
@@ -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
)
}
...
...
spec/migrations/convert_custom_notification_settings_to_columns_spec.rb
View file @
1245cccf
...
...
@@ -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
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment