diff options
Diffstat (limited to 'spec/helpers/application_helper_spec.rb')
-rw-r--r-- | spec/helpers/application_helper_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/helpers/application_helper_spec.rb b/spec/helpers/application_helper_spec.rb index 4e2ba8d..a7b6151 100644 --- a/spec/helpers/application_helper_spec.rb +++ b/spec/helpers/application_helper_spec.rb @@ -11,12 +11,12 @@ describe ApplicationHelper do } intervals_in_words.each do |interval, expectation| - duration_in_words(Time.now + interval, Time.now).should eq expectation + expect(duration_in_words(Time.now + interval, Time.now)).to eq expectation end end it "calculates interval from now if there is no finished_at" do - duration_in_words(nil, Time.now - 5).should eq "5 seconds" + expect(duration_in_words(nil, Time.now - 5)).to eq "5 seconds" end end @@ -30,7 +30,7 @@ describe ApplicationHelper do } intervals_in_words.each do |interval, expectation| - time_interval_in_words(interval).should eq expectation + expect(time_interval_in_words(interval)).to eq expectation end end end |