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
# line 1 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en.rb.rl" | |
require 'gherkin/lexer/i18n_lexer' | |
module Gherkin | |
module RbLexer | |
class En #:nodoc: | |
# line 116 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en.rb.rl" |
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: testing cucumber | |
Background: | |
Given a scenario "Thingamabob" with: | |
""" | |
Given a thingamabob | |
When I frobnicate the thingamabob | |
Then it makes happy kittens | |
""" | |
Scenario: |
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
describe "something" do | |
it "fails" do | |
raise "failure" | |
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
Feature: test | |
Scenario: local bin # features/t.feature:2 | |
Given I successfully run `todo oh hai` # aruba-0.3.5/lib/aruba/cucumber.rb:108 | |
Then the output should contain exactly: # aruba-0.3.5/lib/aruba/cucumber.rb:153 | |
""" | |
oh | |
hai | |
""" |
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
When /^I delete that comment$/ do | |
Comment.count.should == 1 | |
@comment = Comment.last | |
debugger | |
When %Q{I press "X" within "#comments li:first .destroy_comment"} | |
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
-module(n2c). | |
-export([n2c/1]). | |
n2c("255.255.255.255") -> 32; | |
n2c("255.255.255.254") -> 31; | |
n2c("255.255.255.252") -> 30; | |
n2c("255.255.255.248") -> 29; | |
n2c("255.255.255.240") -> 28; | |
n2c("255.255.255.224") -> 27; | |
n2c("255.255.255.192") -> 26; |
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
| type | doors | | |
| SD Plus™ Door | 2 | |
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
$ ruby-1.8.7-p302 method_chain.rb | |
method_chain.rb:2: syntax error, unexpected '.', expecting $end | |
.gsub(/f/, "") | |
^ | |
$ ruby-1.9.2-p0 method_chain.rb | |
OO |
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
#!/usr/bin/env ruby | |
require 'csv' | |
class Converter | |
def initialize(feature) | |
@feature = feature | |
end | |
def to_gherkin |