spec/lib/maid/numeric_extensions_spec.rb in maid-0.5.0 vs spec/lib/maid/numeric_extensions_spec.rb in maid-0.6.0.alpha.1
- old
+ new
@@ -1,25 +1,25 @@
require 'spec_helper'
describe Maid::NumericExtensions::Time, '#since?' do
- it 'should tell you that 1 week ago happened after 2 weeks ago' do
- 1.week.since?(2.weeks.ago).should be_true
+ it 'tells you that 1 week ago happened after 2 weeks ago' do
+ expect(1.week.since?(2.weeks.ago)).to be(true)
end
- it 'should tell you that 2 weeks ago was not after 1 week ago' do
- 2.week.since?(1.weeks.ago).should be_false
+ it 'tells you that 2 weeks ago was not after 1 week ago' do
+ expect(2.week.since?(1.weeks.ago)).to be(false)
end
end
describe Maid::NumericExtensions::SizeToKb do
- it 'should tell you that 1 megabyte equals 1024 kilobytes' do
- 1.megabyte.should == 1024.kilobytes
+ it 'tells you that 1 megabyte equals 1024 kilobytes' do
+ expect(1.megabyte).to eq(1024.kilobytes)
end
- it 'should tell you that 1 gigabyte equals 1024 megabytes' do
- 1.gigabyte.should == 1024.megabytes
+ it 'tells you that 1 gigabyte equals 1024 megabytes' do
+ expect(1.gigabyte).to eq(1024.megabytes)
end
- it 'should tell you that 1 terabyte equals 1024 gigabytes' do
- 1.terabyte.should == 1024.gigabytes
+ it 'tells you that 1 terabyte equals 1024 gigabytes' do
+ expect(1.terabyte).to eq(1024.gigabytes)
end
end