This file contains hidden or 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
.run | |
.info | |
date command project etc. | |
.summary | |
overview of run envisage this as being something like the progress output, with each entry being either a relative link to the feature or a drill into the feature | |
%ol.features | |
%li.feature.pass . | |
%li.feature.pass . | |
%li.feature.fail f | |
%li.feature.pending p |
This file contains hidden or 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: testjour CLI | |
In order to write software quicker | |
As a software engineer | |
I want to run my Cucumber features in parallel | |
Scenario: Print version information | |
# Given foo | |
When I run testjour --version |
This file contains hidden or 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
Scenario: User attempts to redeem a valid PIN, but there is a network issue | |
Given an activated user logged in as 'testuser' | |
And an active PIN code | |
And the connection to CardService fails | |
When she redeems the PIN code | |
Then she should be at the 'redemption/error.html.erb' page | |
And she should see a notice message 'Temporary problem with PIN redemption' | |
And the connection to CardService recovers | |
Scenario: User redeems a valid (active) PIN |
This file contains hidden or 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
abstract (1.0.0) | |
actionmailer (2.2.2, 2.1.2, 2.1.0, 1.3.6) | |
actionpack (2.2.2) | |
actionwebservice (1.2.6) | |
activerecord (2.2.2, 2.1.2, 2.1.0, 1.15.6) | |
activeresource (2.2.2, 2.1.2, 2.1.0) | |
activesupport (2.2.2, 2.1.2, 2.1.1, 2.1.0) | |
acts_as_ferret (0.4.1) | |
addressable (2.0.1, 2.0.0) | |
andre-geokit (1.2.0) |
This file contains hidden or 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
p1 = Proc.new{} | |
p2 = Proc.new{||} | |
p3 = Proc.new{|*a|} | |
p4 = Proc.new{|a,b|} | |
puts p1.arity | |
puts p2.arity | |
puts p3.arity | |
puts p4.arity |
This file contains hidden or 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
# Not tested, but you get the idea.... | |
When /I browse the "(.*)" book/ do |book_name| | |
book = Book.find_by_name(book_name) | |
visit(book_path(book, :action => 'browse')) | |
end |
This file contains hidden or 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
Watir::Browser.default = "firefox" | |
module BrowserAccessor | |
def browser | |
@browser ||= Watir::Browser.new | |
end | |
end | |
World do | |
world = Object.new |
This file contains hidden or 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 MyFormatter < Cucumber::Ast::Visitor | |
def initialize(step_mother, io, options) | |
super(step_mother) | |
step_mother.After do |scenario| | |
if(scenario.has_tags?(['screenshot'])) | |
take_screenshot(scenario) | |
end | |
end | |
end | |
end |
This file contains hidden or 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
Scenario Outline: Religious menus | |
Given I am "<Religion>" | |
When I ask to see a menu | |
Then I should be presented a menu | |
<meats> | |
Examples: | |
| Religion | Pork | Lamb | Veal | | |
| Christian | Y | Y | Y | | |
| Jewish | N | Y | Y | |