Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
work on features, began implementation
- Loading branch information
Showing
9 changed files
with
36 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Feature: system creates deck of cards | ||
|
||
As the system | ||
I want to create a deck of 52 playing cards | ||
|
||
@wip | ||
Scenario: create a deck of 52 playing cards | ||
Given I do not yet have a deck of cards | ||
When I create a new deck of cards | ||
Then I should have a deck with 52 cards | ||
And they should have Ace, 2-10, Jack, Queen, King in four suits |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Given /^I do not yet have a deck of cards$/ do | ||
@deck = nil | ||
end | ||
|
||
When /^I create a new deck of cards$/ do | ||
@deck = Deck.new | ||
end | ||
|
||
Then /^I should have a deck with 52 cards$/ do | ||
pending # express the regexp above with the code you wish you had | ||
end | ||
|
||
Then /^they should have Ace, 2-10, Jack, Queen, King in four suits$/ do | ||
pending # express the regexp above with the code you wish you had | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
$LOAD_PATH << File.expand_path('../../../lib', __FILE__) | ||
$LOAD_PATH << File.expand_path('../../../lib', __FILE__) | ||
require 'deck_of_cards' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
require 'deck_of_cards/deck.rb' | ||
require 'deck_of_cards/card.rb' |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
class Deck | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require 'deck_of_cards' |