Skip to content
Snippets Groups Projects
Commit b0955976 authored by Eduard Thamm's avatar Eduard Thamm
Browse files

Correct: the remaining 3 violations

parent 5069a113
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -429,19 +429,19 @@ RSpec.describe Guard::Dsl do
 
expect(opt[:callbacks].size).to eq 2
 
callback_0 = opt[:callbacks][0]
callback0 = opt[:callbacks][0]
 
expect(callback_0[:events]).to eq :start_end
expect(callback0[:events]).to eq :start_end
 
plugin = instance_double('Guard::Plugin', title: 'RSpec')
result = callback_0[:listener].call(plugin, :start_end, 'foo')
result = callback0[:listener].call(plugin, :start_end, 'foo')
 
expect(result).to eq 'RSpec executed \'start_end\' hook'\
' with foo!'
 
callback_1 = opt[:callbacks][1]
expect(callback_1[:events]).to eq %i[start_begin run_all_begin]
expect(callback_1[:listener]).to eq MyCustomCallback
callback1 = opt[:callbacks][1]
expect(callback1[:events]).to eq %i[start_begin run_all_begin]
expect(callback1[:listener]).to eq MyCustomCallback
end
 
evaluator.call(contents)
Loading
Loading
Loading
Loading
@@ -37,7 +37,7 @@ RSpec.describe Guard::Guardfile::Evaluator do
 
allow(dsl).to receive(:evaluate)
.and_raise(Guard::Dsl::Error,
'Invalid Guardfile, original error is:')
'Invalid Guardfile, original error is:')
 
expect { subject.evaluate }.to raise_error(Guard::Dsl::Error)
end
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