Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-09-15 22:24:57 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2015-09-15 22:24:57 +0300
commit5f315bd565a6fb4c778a32199ef276fafda56f20 (patch)
tree10a0213df79c22cc4940ab257d9bfb41a9443421
parent6cc15cf721d9e52868c6f4e55b64b4cc4c18aba2 (diff)
Fix: helpers/ci/application_helper_spec.rb
-rw-r--r--spec/helpers/ci/application_helper_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/helpers/ci/application_helper_spec.rb b/spec/helpers/ci/application_helper_spec.rb
index 478c0266770..6a216715b7f 100644
--- a/spec/helpers/ci/application_helper_spec.rb
+++ b/spec/helpers/ci/application_helper_spec.rb
@@ -11,12 +11,12 @@ describe Ci::ApplicationHelper do
}
intervals_in_words.each do |interval, expectation|
- duration_in_words(Time.now + interval, Time.now).should == 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 == "5 seconds"
+ expect(duration_in_words(nil, Time.now - 5)).to eq("5 seconds")
end
end
@@ -30,7 +30,7 @@ describe Ci::ApplicationHelper do
}
intervals_in_words.each do |interval, expectation|
- time_interval_in_words(interval).should == expectation
+ expect(time_interval_in_words(interval)).to eq(expectation)
end
end
end