Skip to content
Snippets Groups Projects
Commit a52fe164 authored by Kamil Trzcinski's avatar Kamil Trzcinski
Browse files

Rename queue to enqueue in tests

parent 47f007d6
No related branches found
No related tags found
No related merge requests found
Loading
@@ -296,6 +296,7 @@ group :development, :test do
Loading
@@ -296,6 +296,7 @@ group :development, :test do
gem 'spring-commands-rspec', '~> 1.0.4' gem 'spring-commands-rspec', '~> 1.0.4'
gem 'spring-commands-spinach', '~> 1.1.0' gem 'spring-commands-spinach', '~> 1.1.0'
gem 'spring-commands-teaspoon', '~> 0.0.2' gem 'spring-commands-teaspoon', '~> 0.0.2'
gem "spring-commands-sidekiq"
   
gem 'rubocop', '~> 0.41.2', require: false gem 'rubocop', '~> 0.41.2', require: false
gem 'rubocop-rspec', '~> 1.5.0', require: false gem 'rubocop-rspec', '~> 1.5.0', require: false
Loading
Loading
Loading
@@ -696,6 +696,8 @@ GEM
Loading
@@ -696,6 +696,8 @@ GEM
spring (1.7.2) spring (1.7.2)
spring-commands-rspec (1.0.4) spring-commands-rspec (1.0.4)
spring (>= 0.9.1) spring (>= 0.9.1)
spring-commands-sidekiq (1.0.0)
spring (>= 0.9.1)
spring-commands-spinach (1.1.0) spring-commands-spinach (1.1.0)
spring (>= 0.9.1) spring (>= 0.9.1)
spring-commands-teaspoon (0.0.2) spring-commands-teaspoon (0.0.2)
Loading
@@ -955,6 +957,7 @@ DEPENDENCIES
Loading
@@ -955,6 +957,7 @@ DEPENDENCIES
spinach-rerun-reporter (~> 0.0.2) spinach-rerun-reporter (~> 0.0.2)
spring (~> 1.7.0) spring (~> 1.7.0)
spring-commands-rspec (~> 1.0.4) spring-commands-rspec (~> 1.0.4)
spring-commands-sidekiq
spring-commands-spinach (~> 1.1.0) spring-commands-spinach (~> 1.1.0)
spring-commands-teaspoon (~> 0.0.2) spring-commands-teaspoon (~> 0.0.2)
sprockets (~> 3.6.0) sprockets (~> 3.6.0)
Loading
Loading
Loading
@@ -3,7 +3,7 @@
Loading
@@ -3,7 +3,7 @@
# This file loads spring without using Bundler, in order to be fast. # This file loads spring without using Bundler, in order to be fast.
# It gets overwritten when you run the `spring binstub` command. # It gets overwritten when you run the `spring binstub` command.
   
unless (defined?(Spring) || ENV['ENABLE_SPRING'] != '1') && File.basename($0) != 'spring' unless defined?(Spring)
require 'rubygems' require 'rubygems'
require 'bundler' require 'bundler'
   
Loading
Loading
Loading
@@ -335,8 +335,8 @@ describe Ci::Pipeline, models: true do
Loading
@@ -335,8 +335,8 @@ describe Ci::Pipeline, models: true do
context 'with multiple builds' do context 'with multiple builds' do
context 'when build is queued' do context 'when build is queued' do
before do before do
build_a.queue build_a.enqueue
build_b.queue build_b.enqueue
end end
   
it 'receive a pending event once' do it 'receive a pending event once' do
Loading
@@ -346,9 +346,9 @@ describe Ci::Pipeline, models: true do
Loading
@@ -346,9 +346,9 @@ describe Ci::Pipeline, models: true do
   
context 'when build is run' do context 'when build is run' do
before do before do
build_a.queue build_a.enqueue
build_a.run build_a.run
build_b.queue build_b.enqueue
build_b.run build_b.run
end end
   
Loading
@@ -382,8 +382,8 @@ describe Ci::Pipeline, models: true do
Loading
@@ -382,8 +382,8 @@ describe Ci::Pipeline, models: true do
let(:enabled) { false } let(:enabled) { false }
   
before do before do
build_a.queue build_a.enqueue
build_b.queue build_b.enqueue
end end
   
it 'did not execute pipeline_hook after touched' do it 'did not execute pipeline_hook after touched' do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment