Commit 510b17d7 authored by Robert Speicher's avatar Robert Speicher
Browse files

Remove old should syntax from spec

parent c44014c8
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment