Skip to content
Snippets Groups Projects
Commit 510b17d7 authored by Robert Speicher's avatar Robert Speicher
Browse files

Remove old should syntax from spec

parent c44014c8
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
@@ -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
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment