diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index 891503f..8d564cb 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -116,7 +116,7 @@ it "should return when was the last build" do date = Time.now - Project.new(:builds => [Build.new :created_at => date]).last_builded_at.should eql(date) + Project.new(:builds => [Build.new(:created_at => date)]).last_builded_at.should eql(date) end context "on update" do