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

@@ -11,7 +11,7 @@ describe SvnUpdater do
describe '#is_installed?' do
after :each do
stub_system_command(@svn_updater, /^svn info/, @stub_value)
@svn_updater.is_installed?.should === @expected
expect(@svn_updater.is_installed?).to be === @expected
end
it 'should return false if the svn command is not found' do
@@ -50,7 +50,7 @@ describe SvnUpdater do
describe '#local_revision_number' do
after :each do
stub_system_command(@svn_updater, /^svn info/, @stub_value)
@svn_updater.local_revision_number.should === @expected
expect(@svn_updater.local_revision_number).to be === @expected
end
it 'should return 399' do
@@ -79,7 +79,7 @@ describe SvnUpdater do
describe '#update' do
it 'should do nothing xD' do
stub_system_command(@svn_updater, /^svn up/, 'At revision 425.')
@svn_updater.update().should === 'At revision 425.'
expect(@svn_updater.update()).to be === 'At revision 425.'
end
end