Closed scott-steadman closed 10 years ago
Refactor before(:each) into memoized getters. Reason: Prevent unnecessary object creation
Example Code:
def game
@game ||= Game.new
end
Remove the first test 'have a crib with four cards' Reason: It looks like the same methods are tested (better) in subsequent tests.
Get rid of Game parameter in inner describes Reason: I believe it is redundant since you're already in a describe Game block.