summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
Diffstat (limited to 'features')
-rw-r--r--features/codebreaker_submits_guess.feature8
-rw-r--r--features/step_definitions/mastermind.rb2
2 files changed, 9 insertions, 1 deletions
diff --git a/features/codebreaker_submits_guess.feature b/features/codebreaker_submits_guess.feature
index dac2141..a36422f 100644
--- a/features/codebreaker_submits_guess.feature
+++ b/features/codebreaker_submits_guess.feature
@@ -41,3 +41,11 @@ Feature: code-breaker submits guess
| code | guess | mark |
| r g y c | r w w w | b |
| r g y c | w w r w | w |
+
+ Scenarios: dups in guess match color in code
+ | code | guess | mark |
+ | r y g c | r y g g | bbb |
+ | r y g c | r y c c | bbb |
+ | r y g c | g y r g | bww |
+
+
diff --git a/features/step_definitions/mastermind.rb b/features/step_definitions/mastermind.rb
index 680a2b6..91ec22b 100644
--- a/features/step_definitions/mastermind.rb
+++ b/features/step_definitions/mastermind.rb
@@ -4,7 +4,7 @@ def messenger
end
def game
- @game = ||= Mastermind::Game.new(messenger)
+ @game ||= Mastermind::Game.new(messenger)
end
def messages_should_include(message)