Improve small details in specs:
* Fix coding standards; * Simplify some expectations (eq instead of be matcher); * Expect identity on block instead of calling; * Change some before call as oneliners; * Avoid shadowing variable names; * Improve wording where needed.
This commit is contained in:
@@ -41,7 +41,7 @@ module Producer::Core
|
||||
end
|
||||
|
||||
it 'returns the remote' do
|
||||
remote = double('remote')
|
||||
remote = double 'remote'
|
||||
allow(Remote).to receive(:new) { remote }
|
||||
expect(env.remote).to eq remote
|
||||
end
|
||||
|
Reference in New Issue
Block a user