Rename Remote::Environment#{has_,}key?

This commit is contained in:
Thibault Jouan
2014-01-08 22:27:43 +00:00
parent 56ea377e31
commit 19b091a15c
4 changed files with 9 additions and 9 deletions

View File

@@ -33,13 +33,13 @@ module Producer::Core
end
end
describe '#has_key?' do
describe '#key?' do
let(:key) { 'SOME_KEY' }
it 'forwards the message to @variables' do
expect(environment.instance_eval { @variables })
.to receive(:has_key?).with(key)
environment.has_key? key
.to receive(:key?).with(key)
environment.key? key
end
end
end