Skip to content

Commit

Permalink
Robustifying test
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron Dutro committed Dec 6, 2012
1 parent a3f45a6 commit d4da787
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -30,9 +30,9 @@

describe "#exist_score" do
it "calculates a higher score if an entity doesn't exist" do
goal_entities = selector.send(:separate, "MMMd")
goal_entities = selector.send(:separate, "MMMEd")
entities = selector.send(:separate, "d")
selector.send(:exist_score, entities, goal_entities).should == 1
selector.send(:exist_score, entities, goal_entities).should == 2
end

it "calculates a zero score if all entities exist" do
Expand Down

0 comments on commit d4da787

Please sign in to comment.