summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/database
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2016-05-11 14:11:04 +0200
committerYorick Peterse <yorickpeterse@gmail.com>2016-05-12 13:03:55 +0200
commit36083b4d0ee6787da6be13b45cc7144de704c308 (patch)
tree09435256de20597c7860a347d2f0a4ed1b8da8ec /spec/lib/gitlab/database
parent443c3aa5972fda2f9899fe3618ebfb9a31f59e1f (diff)
downloadgitlab-ce-36083b4d0ee6787da6be13b45cc7144de704c308.tar.gz
Fixed styling per Rubocop pedantics
Diffstat (limited to 'spec/lib/gitlab/database')
-rw-r--r--spec/lib/gitlab/database/migration_helpers_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/lib/gitlab/database/migration_helpers_spec.rb b/spec/lib/gitlab/database/migration_helpers_spec.rb
index ad2f3cb7e45..ec43165bb53 100644
--- a/spec/lib/gitlab/database/migration_helpers_spec.rb
+++ b/spec/lib/gitlab/database/migration_helpers_spec.rb
@@ -105,9 +105,9 @@ describe Gitlab::Database::MigrationHelpers, lib: true do
expect(model).to receive(:remove_column).
with(:projects, :foo)
- expect {
+ expect do
model.add_column_with_default(:projects, :foo, :integer, default: 10)
- }.to raise_error(RuntimeError)
+ end.to raise_error(RuntimeError)
end
end
@@ -115,9 +115,9 @@ describe Gitlab::Database::MigrationHelpers, lib: true do
it 'raises RuntimeError' do
expect(model).to receive(:transaction_open?).and_return(true)
- expect {
+ expect do
model.add_column_with_default(:projects, :foo, :integer, default: 10)
- }.to raise_error(RuntimeError)
+ end.to raise_error(RuntimeError)
end
end
end