Rspec 3.0 support

This commit is contained in:
erwanlr
2014-06-02 22:06:49 +02:00
parent c12b1d0670
commit c8c126d444
55 changed files with 338 additions and 336 deletions

View File

@@ -6,7 +6,7 @@ shared_examples 'WpTarget::WpReadme' do
describe '#readme_url' do
it 'returns http://example.localhost/readme.html' do
wp_target.readme_url.should === "#{wp_target.uri}readme.html"
expect(wp_target.readme_url).to be === "#{wp_target.uri}readme.html"
end
end
@@ -14,7 +14,7 @@ shared_examples 'WpTarget::WpReadme' do
after do
stub_request(:get, wp_target.readme_url).to_return(@stub)
wp_target.has_readme?.should === @expected
expect(wp_target.has_readme?).to be === @expected
end
it 'returns false on a 404' do