spec/timer_spec.rb in shelltastic-0.5.0 vs spec/timer_spec.rb in shelltastic-1.0.0
- old
+ new
@@ -1,23 +1,23 @@
require 'spec_helper'
describe ShellTastic::Timer do
- it "should report start time" do
+ it "reports start time" do
start = ShellTastic::Timer.new.start
- start.class.should eq(Time)
+ expect(start.class).to eq(Time)
end
- it "should report stop time" do
+ it "reports the stop time" do
stop = ShellTastic::Timer.new.stop
- stop.class.should eq(Time)
+ expect(stop.class).to eq(Time)
end
- it "should report total time" do
+ it "reports total time" do
timer = ShellTastic::Timer.new
start = timer.start
sleep 2
stop = timer.stop
total = timer.total_time
- total.round.should eq(2)
+ expect(total.round).to eq(2)
end
end