Skip to content
Browse files

FishingForecaster is default for GoFish

  • Loading branch information...
1 parent b66b1f8 commit 8414d6f2aa59be7368afd7b02cc49acfc0a8df44 Greg committed Aug 9, 2009
Showing with 4 additions and 2 deletions.
  1. +3 −1 go_fish.rb
  2. +1 −1 test/unit/go_fish_test.rb
View
4 go_fish.rb
@@ -1,8 +1,10 @@
+require 'fishing_forecaster'
+
class GoFish
@@positive_response = "Go fish"
@@negative_response = "Hack"
- @@default_fishing_forecaster = ""
+ @@default_fishing_forecaster = FishingForecaster
@@fishing_forecaster = @@default_fishing_forecaster
def self.positive_response
View
2 test/unit/go_fish_test.rb
@@ -41,7 +41,7 @@ def test_gt_50_percent_likelihood_of_catch
end
def test_fishing_forecaster_default
- assert_not_nil GoFish.fishing_forecaster
+ assert_equal FishingForecaster, GoFish.fishing_forecaster
end
def test_fishing_forecaster_getter_setter

0 comments on commit 8414d6f

Please sign in to comment.
Something went wrong with that request. Please try again.