Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge pull request #440 from mhaskel/fix_setting_validation
[puppet-modules/puppetlabs-apt.git]
/
spec
/
unit
/
facter
/
apt_update_last_success_spec.rb
diff --git
a/spec/unit/facter/apt_update_last_success_spec.rb
b/spec/unit/facter/apt_update_last_success_spec.rb
index 08774cd012eb47bde480ec264970dc999c77656e..cb32a5ef02cf25d686c797375185ba80a9599530 100644
(file)
--- a/
spec/unit/facter/apt_update_last_success_spec.rb
+++ b/
spec/unit/facter/apt_update_last_success_spec.rb
@@
-10,7
+10,7
@@
describe 'apt_update_last_success fact' do
File.stubs(:exists?).returns false
}
it 'should have a value of -1' do
File.stubs(:exists?).returns false
}
it 'should have a value of -1' do
- should == -1
+ is_expected.to eq(-1)
end
end
end
end
@@
-21,7
+21,7
@@
describe 'apt_update_last_success fact' do
File.stubs(:mtime).returns 1407660561
}
it 'should have the value of the mtime of the file' do
File.stubs(:mtime).returns 1407660561
}
it 'should have the value of the mtime of the file' do
- should == 1407660561
+ is_expected.to eq(1407660561)
end
end
end
end