Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew Blessing <drew@gitlab.com>2016-09-16 05:59:55 +0300
committerDrew Blessing <drew@gitlab.com>2016-09-16 05:59:59 +0300
commit1f399fe437abc67e3f6d4812bab17f0ef0aab77b (patch)
treeb28e88622fc786f2296f006cb11e59448805b146 /spec/lib/gitlab/database
parente000f02bd3b7c13f7f3a95b855fea6b3dd277417 (diff)
fix
Diffstat (limited to 'spec/lib/gitlab/database')
-rw-r--r--spec/lib/gitlab/database/migration_helpers_spec.rb11
1 files changed, 3 insertions, 8 deletions
diff --git a/spec/lib/gitlab/database/migration_helpers_spec.rb b/spec/lib/gitlab/database/migration_helpers_spec.rb
index 21d90e29cdb..7fd25b9e5bf 100644
--- a/spec/lib/gitlab/database/migration_helpers_spec.rb
+++ b/spec/lib/gitlab/database/migration_helpers_spec.rb
@@ -156,14 +156,9 @@ describe Gitlab::Database::MigrationHelpers, lib: true do
it 'adds the column with a limit' do
allow(model).to receive(:transaction_open?).and_return(false)
allow(model).to receive(:transaction).and_yield
- expect(model).to receive(:add_column).
- with(:projects, :foo, :integer, default: nil, limit: 8)
- allow(model).to receive(:update_column_in_batches).
- with(:projects, :foo, 10)
- allow(model).to receive(:change_column_null).
- with(:projects, :foo, false)
- allow(model).to receive(:change_column_default).
- with(:projects, :foo, 10)
+ allow(model).to receive(:update_column_in_batches).with(:projects, :foo, 10)
+ allow(model).to receive(:change_column_null).with(:projects, :foo, false)
+ allow(model).to receive(:change_column_default).with(:projects, :foo, 10)
expect(model).to receive(:add_column).
with(:projects, :foo, :integer, default: nil, limit: 8)