Created
March 27, 2015 18:28
-
-
Save chewmanfoo/a7efb4d11eca1c395d8a to your computer and use it in GitHub Desktop.
cucumber failure
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
Feature: SharePoint | |
In order to avoid overspend in AWS | |
As a systems engineer | |
I want to be able to sum the costs of SharePoint instances in AWS | |
Scenario: Total all SharePoint instances fees in AWS | |
Given I have a SharePoint cluster in AWS | |
And I sum up the costs of all SharePoint instances | |
When I view the result | |
Then I should see a cost less than 85.00 |
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
class AwsProx | |
def initialize() | |
end | |
def confirm_cluster(cluster) | |
end | |
end | |
Given(/^I have a SharePoint cluster in AWS$/) do | |
@proxy = AwsProx.new() | |
@proxy.confirm_cluster("SharePoint").should == true | |
end | |
Given(/^I sum up the costs of all SharePoint instances$/) do | |
pending # Write code here that turns the phrase above into concrete actions | |
end | |
When(/^I view the result$/) do | |
pending # Write code here that turns the phrase above into concrete actions | |
end | |
Then(/^I should see a cost less than (\d+)\.(\d+)$/) do |arg1, arg2| | |
pending # Write code here that turns the phrase above into concrete actions | |
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
Feature: SharePoint | |
In order to avoid overspend in AWS | |
As a systems engineer | |
I want to be able to sum the costs of SharePoint instances in AWS | |
Scenario: Total all SharePoint instances fees in AWS # features/cost_mgmt.feature:6 | |
Given I have a SharePoint cluster in AWS # features/step_definitions/cost_mgmt_steps.rb:10 | |
undefined method `should' for nil:NilClass (NoMethodError) | |
./features/step_definitions/cost_mgmt_steps.rb:13:in `/^I have a SharePoint cluster in AWS$/' | |
features/cost_mgmt.feature:7:in `Given I have a SharePoint cluster in AWS' | |
And I sum up the costs of all SharePoint instances # features/step_definitions/cost_mgmt_steps.rb:16 | |
When I view the result # features/step_definitions/cost_mgmt_steps.rb:20 | |
Then I should see a cost less than 85.00 # features/step_definitions/cost_mgmt_steps.rb:24 | |
Failing Scenarios: | |
cucumber features/cost_mgmt.feature:6 # Scenario: Total all SharePoint instances fees in AWS | |
1 scenario (1 failed) | |
4 steps (1 failed, 3 skipped) | |
0m0.011s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment