diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-05-18 20:56:02 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2017-05-19 11:11:53 +0300 |
commit | 3496476205a7361a39e714eb9df7ad321b525ea2 (patch) | |
tree | 994154f81ad40a7f9477ad3f94cd4d0b6e1f6211 /spec | |
parent | 01a7f333026ab7031122075d1c797423005ca56b (diff) |
Remove readme project_view option
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 |