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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
d8739f94
Commit
d8739f94
authored
Mar 14, 2019
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove factories from MigrateUserProjectView spec
parent
8e5bbf8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/migrations/migrate_user_project_view_spec.rb
spec/migrations/migrate_user_project_view_spec.rb
+3
-3
No files found.
spec/migrations/migrate_user_project_view_spec.rb
View file @
d8739f94
...
@@ -3,15 +3,15 @@
...
@@ -3,15 +3,15 @@
require
'spec_helper'
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20170406142253_migrate_user_project_view.rb'
)
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20170406142253_migrate_user_project_view.rb'
)
describe
MigrateUserProjectView
,
:
delete
do
describe
MigrateUserProjectView
,
:
migration
do
let
(
:migration
)
{
described_class
.
new
}
let
(
:migration
)
{
described_class
.
new
}
let!
(
:user
)
{
create
(
:user
,
project_view:
'readme'
)
}
# rubocop:disable RSpec/FactoriesInMigrationSpecs
let!
(
:user
)
{
table
(
:users
).
create!
(
project_view:
User
.
project_views
[
'readme'
])
}
describe
'#up'
do
describe
'#up'
do
it
'updates project view setting with new value'
do
it
'updates project view setting with new value'
do
migration
.
up
migration
.
up
expect
(
user
.
reload
.
project_view
).
to
eq
(
'files'
)
expect
(
user
.
reload
.
project_view
).
to
eq
(
User
.
project_views
[
'files'
]
)
end
end
end
end
end
end
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