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
| 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
| 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: 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
| # 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
| # This: | |
| respond_to do |format| | |
| format.html do | |
| # generate html | |
| end | |
| format.js do | |
| # generate javascript | |
| 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
| export PS1='\[\033[32m\]\u@\h\[\033[00m\]:\[\033[36m\]\w\[\033[00m\]$(__git_ps1 "(%s)") \$ ' |
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
| %% From "Why Functional Programming Matters" by John Hughes | |
| -module(tree). | |
| -include_lib("eunit/include/eunit.hrl"). | |
| -export([fold/4, | |
| map/2]). | |
| -type label() :: any(). | |
| -type tree() :: {label(), [tree()]}. |
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
| This is a test |
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
| acc_func(Xs) -> | |
| acc_func(Xs, []). | |
| acc_func([], Acc) -> | |
| lists:reverse(Acc); | |
| acc_func([X|Xs], Acc) -> | |
| acc_func(Xs, [X * 2|Acc]). | |
| (defn acc-func [xs] | |
| (loop [my-xs (seq xs) acc []] |