-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup aruba and add rspec and cucumber tests
- Loading branch information
Richard Bates
committed
Feb 22, 2018
1 parent
f9c4790
commit 321ca4b
Showing
7 changed files
with
69 additions
and
0 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,9 @@ | ||
Feature: Hello | ||
|
||
Scenario: With a name of Emilio | ||
When I run `hodlmoon hello Emilio` | ||
Then the output should contain "Hello Emilio" | ||
|
||
Scenario: With no name | ||
When I run `hodlmoon hello` | ||
Then the output should contain "called with no arguments" |
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,14 @@ | ||
Feature: Price | ||
|
||
Scenario: Price of ethereum | ||
When I run `hodlmoon price` | ||
|
||
Scenario: No currency provided | ||
When I run `hodlmoon price ethereum` | ||
Then the output should contain "Price gbp" | ||
And the output should contain "Market cap gbp" | ||
|
||
Scenario: Currency provided | ||
When I run `hodlmoon price ethereum usd` | ||
Then the output should contain "Price usd" | ||
And the output should contain "Market cap usd" |
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 'aruba/cucumber' |
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,7 @@ | ||
RSpec.describe Hodlmoon::Cli do | ||
subject(:cli) { described_class.new } | ||
|
||
describe '#hello' do | ||
it { expect { cli.hello('Emilio') }.to output("Hello Emilio\n").to_stdout } | ||
end | ||
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