Commit 97f28e0a authored by Jan Provaznik's avatar Jan Provaznik

Merge branch 'ab/add-column-with-default-specs' into 'master'

Test for no offenses only makes sense with offense

See merge request gitlab-org/gitlab!22301
parents 8fc0d79a a2ed00bc
......@@ -16,7 +16,7 @@ describe RuboCop::Cop::Migration::AddColumnWithDefault do
it 'does not register any offenses' do
expect_no_offenses(<<~RUBY)
def up
add_reference(:projects, :users)
add_column_with_default(:ci_build_needs, :artifacts, :boolean, default: true, allow_null: false)
end
RUBY
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment