diff options
author | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2017-10-16 13:21:51 -0700 |
---|---|---|
committer | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2017-10-16 15:33:20 -0700 |
commit | a42d7980af0ccad036a68cb5497049464be0b2dc (patch) | |
tree | d2137e752d0b450e7341bd8475507aad8ee5b99f /spec/migrations | |
parent | 30083458b9e2a1e9e54ea09aea8c037e76732af4 (diff) | |
download | gitlab-ce-a42d7980af0ccad036a68cb5497049464be0b2dc.tar.gz |
Add readme only option as project view
Diffstat (limited to 'spec/migrations')
-rw-r--r-- | spec/migrations/migrate_user_project_view_spec.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/spec/migrations/migrate_user_project_view_spec.rb b/spec/migrations/migrate_user_project_view_spec.rb index afaa5d836a7..5e16769d63a 100644 --- a/spec/migrations/migrate_user_project_view_spec.rb +++ b/spec/migrations/migrate_user_project_view_spec.rb @@ -5,12 +5,7 @@ require Rails.root.join('db', 'post_migrate', '20170406142253_migrate_user_proje describe MigrateUserProjectView, :truncate do let(:migration) { described_class.new } - let!(:user) { create(:user) } - - before do - # 0 is the numeric value for the old 'readme' option - user.update_column(:project_view, 0) - end + let!(:user) { create(:user, project_view: 'readme') } describe '#up' do it 'updates project view setting with new value' do |