From 510b17d79d78072469aae76195e8dac7ee416250 Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Wed, 16 Sep 2015 20:41:40 -0400 Subject: Remove old should syntax from spec --- spec/models/project_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index fcd4ee7..b74bc5e 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -67,7 +67,7 @@ describe Project do it 'returns ordered list of commits' do commit1 = FactoryGirl.create :commit, committed_at: 1.hour.ago, project: project commit2 = FactoryGirl.create :commit, committed_at: 2.hour.ago, project: project - project.commits.should == [commit2, commit1] + expect(project.commits).to eq [commit2, commit1] end it 'returns commits ordered by committed_at and id, with nulls last' do @@ -75,7 +75,7 @@ describe Project do commit2 = FactoryGirl.create :commit, committed_at: nil, project: project commit3 = FactoryGirl.create :commit, committed_at: 2.hour.ago, project: project commit4 = FactoryGirl.create :commit, committed_at: nil, project: project - project.commits.should == [commit2, commit4, commit3, commit1] + expect(project.commits).to eq [commit2, commit4, commit3, commit1] end end -- cgit v1.2.1