Permalink
Browse files

Fixing shit

  • Loading branch information...
1 parent ab3c582 commit 9459a9392cc3e535926cbd87756b511a7ea97cca @wakeless committed Mar 23, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 app/models/game.rb
  2. +1 −1 spec/models/game_spec.rb
View
@@ -4,7 +4,7 @@ class Game < ActiveRecord::Base
belongs_to :winner, :class_name => "Player"
belongs_to :loser, :class_name => "Player"
- validate_presence_of :sport, message: "When you play nothing, there is no winner or loser"
+ validates_presence_of :sport, message: "When you play nothing, there is no winner or loser"
validates_presence_of :winner, message: "Even life has a winner"
validates_presence_of :loser, message: "Without losers, there can be no winners"
View
@@ -4,7 +4,7 @@
it { should belong_to(:sport) }
it { should belong_to(:loser).class_name("Player") }
it { should belong_to(:winner).class_name("Player") }
- it { should_validate_presence_of(:sport).with_message("When you play nothing, there is no winner or loser") }
+ it { should validate_presence_of(:sport).with_message("When you play nothing, there is no winner or loser") }
it { should validate_presence_of(:winner).with_message("Even life has a winner") }
it { should validate_presence_of(:loser).with_message("Without losers, there can be no winners") }
end

0 comments on commit 9459a93

Please sign in to comment.