Convert specs to RSpec 2.14.8 syntax with Transpec
This conversion is done by Transpec 1.10.4 with the following command:
transpec
* 39 conversions
from: obj.should
to: expect(obj).to
* 22 conversions
from: == expected
to: eq(expected)
* 18 conversions
from: obj.should_receive(:message)
to: expect(obj).to receive(:message)
* 13 conversions
from: obj.stub(:message)
to: allow(obj).to receive(:message)
* 11 conversions
from: obj.should_not
to: expect(obj).not_to
* 5 conversions
from: =~ /pattern/
to: match(/pattern/)
* 2 conversions
from: obj.should_not_receive(:message)
to: expect(obj).not_to receive(:message)
This commit is contained in:
@@ -14,7 +14,7 @@ RSpec.configure do |config|
|
||||
config.before { silence! }
|
||||
|
||||
def silence!
|
||||
homesick.stub(:say_status)
|
||||
allow(homesick).to receive(:say_status)
|
||||
end
|
||||
|
||||
def given_castle(path, subdirs = [])
|
||||
|
||||
Reference in New Issue
Block a user