diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2017-05-19 12:15:28 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2017-05-19 12:15:28 +0300 |
commit | dda66953ffbf102f3c9eef7921bb9a25d3b45b88 (patch) | |
tree | f1f81515189a4a989e3254414525bba423de96be /spec | |
parent | 4f91124248f7a56fc82ce6b3aa8bba79eec2eb9d (diff) | |
parent | 3496476205a7361a39e714eb9df7ad321b525ea2 (diff) |
Merge branch 'dm-fix-readme-project-view' into 'master'
Remove readme project_view option
See merge request !11425
Diffstat (limited to 'spec')
-rw-r--r-- | spec/migrations/migrate_user_project_view_spec.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/migrations/migrate_user_project_view_spec.rb b/spec/migrations/migrate_user_project_view_spec.rb index dacaa834aa9..70f8e0d6082 100644 --- a/spec/migrations/migrate_user_project_view_spec.rb +++ b/spec/migrations/migrate_user_project_view_spec.rb @@ -5,7 +5,12 @@ require Rails.root.join('db', 'post_migrate', '20170406142253_migrate_user_proje describe MigrateUserProjectView do let(:migration) { described_class.new } - let!(:user) { create(:user, project_view: 'readme') } + let!(:user) { create(:user) } + + before do + # 0 is the numeric value for the old 'readme' option + user.update_column(:project_view, 0) + end describe '#up' do it 'updates project view setting with new value' do |