Merge pull request #1191 from openHPI/dependabot/bundler/rubocop-rspec-2.9.0
Bump rubocop-rspec from 2.8.0 to 2.9.0
This commit is contained in:
@ -427,7 +427,7 @@ GEM
|
|||||||
activesupport (>= 4.2.0)
|
activesupport (>= 4.2.0)
|
||||||
rack (>= 1.1)
|
rack (>= 1.1)
|
||||||
rubocop (>= 1.7.0, < 2.0)
|
rubocop (>= 1.7.0, < 2.0)
|
||||||
rubocop-rspec (2.8.0)
|
rubocop-rspec (2.9.0)
|
||||||
rubocop (~> 1.19)
|
rubocop (~> 1.19)
|
||||||
ruby-progressbar (1.11.0)
|
ruby-progressbar (1.11.0)
|
||||||
ruby-vips (2.1.4)
|
ruby-vips (2.1.4)
|
||||||
|
@ -24,7 +24,7 @@ describe PortPool do
|
|||||||
it 'returns the port' do
|
it 'returns the port' do
|
||||||
available_ports = described_class.instance_variable_get(:@available_ports)
|
available_ports = described_class.instance_variable_get(:@available_ports)
|
||||||
described_class.instance_variable_set(:@available_ports, [])
|
described_class.instance_variable_set(:@available_ports, [])
|
||||||
expect(described_class.available_port).to be nil
|
expect(described_class.available_port).to be_nil
|
||||||
described_class.instance_variable_set(:@available_ports, available_ports)
|
described_class.instance_variable_set(:@available_ports, available_ports)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -45,7 +45,7 @@ RSpec.describe ExerciseService::PushExternal do
|
|||||||
end
|
end
|
||||||
|
|
||||||
context 'when response status is success' do
|
context 'when response status is success' do
|
||||||
it { is_expected.to be nil }
|
it { is_expected.to be_nil }
|
||||||
|
|
||||||
context 'when response status is 500' do
|
context 'when response status is 500' do
|
||||||
let(:status) { 500 }
|
let(:status) { 500 }
|
||||||
@ -58,7 +58,7 @@ RSpec.describe ExerciseService::PushExternal do
|
|||||||
context 'when an error occurs' do
|
context 'when an error occurs' do
|
||||||
before { allow(Faraday).to receive(:new).and_raise(StandardError) }
|
before { allow(Faraday).to receive(:new).and_raise(StandardError) }
|
||||||
|
|
||||||
it { is_expected.not_to be nil }
|
it { is_expected.not_to be_nil }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -16,7 +16,7 @@ describe ProformaService::ExportTask do
|
|||||||
subject(:export_task) { described_class.new }
|
subject(:export_task) { described_class.new }
|
||||||
|
|
||||||
it 'assigns exercise' do
|
it 'assigns exercise' do
|
||||||
expect(export_task.instance_variable_get(:@exercise)).to be nil
|
expect(export_task.instance_variable_get(:@exercise)).to be_nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user