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
button_steps.rb | |
I click the button "([^\"]*)" # button_steps.rb:1 | |
I click the button "([^\"]*)" no block # button_steps.rb:7 | |
checkbox_steps.rb | |
I click the checkbox "([^\"]*)" # checkbox_steps.rb:1 | |
the checkbox "([^\"]*)" should (not )*be selected # checkbox_steps.rb:12 |
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
import collection.immutable.TreeMap | |
import collection.mutable.ListBuffer | |
import reflect.Manifest | |
import util.matching.Regex | |
/* | |
Cucumber API for Scala | |
Other attempts are | |
http://gist.github.com/161702 |
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 'rubygems' | |
require 'webrat' | |
require 'webrat/mechanize' | |
require 'spec' | |
class MechanizeWorld < Webrat::MechanizeSession | |
include Spec::Matchers | |
include Webrat::Methods |
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: Submit Webform | |
As a visitor to xxx.com | |
I want to submit a form with some personal information | |
and be redirected to a thank-you page. | |
Scenario: Form Submission | |
Given I visit "http://xxx/webform.html" | |
And I type "home" into field "loan_purpose", | |
And I type "99999" into field "loan_amount", | |
And I type "Joe" into field "first_name", |
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
=v-gradient(!top_color, !bottom_color, !midpoint_color = false, !midpoint = false) | |
@if !midpoint_color == false | |
!midpoint_color = !top_color / 2 + !bottom_color / 2 | |
@if !midpoint == false | |
!midpoint = 50% | |
background: -webkit-gradient(linear, center top, center bottom, from(#{!top_color}), color-stop(#{!midpoint}, #{!midpoint_color}), to(#{!bottom_color})) | |
background: -moz-linear-gradient(top, #{!top_color}, #{!midpoint_color} #{!midpoint}, #{!bottom_color}) |
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
~$ ARCHFLAGS='-arch i386 -arch x86_64' | |
~$ rvm install 1.8.7 --debug --reconfigure -C --enable-shared=yes | |
~$ wget http://sourceforge.net/projects/rubycocoa/files/RubyCocoa/1.0.0/RubyCocoa-1.0.0.tar.gz/download | |
~$ tar xzf RubyCocoa-1.0.0.tar.gz && rm RubyCocoa-1.0.0.tar.gz && cd RubyCocoa-1.0.0 | |
~/RubyCocoa-1.0.0$ ruby install.rb config --build-universal=yes | |
~/RubyCocoa-1.0.0$ ruby install.rb setup | |
~/RubyCocoa-1.0.0$ sudo ruby install.rb install |
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: developer creates a skeleton Ruby application | |
In order to get to the beach more quickly | |
As a developer | |
I want to instantly create a basic Ruby application skeleton | |
Scenario: create a new application | |
Given there should be a bin/[application_name] file which contains: | |
""" |
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/sh | |
ARCHFLAGS='-arch i386 -arch x86_64' | |
rvm install 1.8.7 --debug --reconfigure -C --enable-shared=yes | |
wget http://sourceforge.net/projects/rubycocoa/files/RubyCocoa/1.0.1/RubyCocoa-1.0.1.tar.gz/download | |
tar xzf RubyCocoa-1.0.1.tar.gz && rm RubyCocoa-1.0.1.tar.gz && cd RubyCocoa-1.0.1 | |
ruby install.rb config --build-universal=yes | |
ruby install.rb setup | |
sudo ruby install.rb install |
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: foo | |
Scenario Outline: Incorrect Search Output | |
When I do an invalid search of: "<keywords>" | |
Then an invalid search result page of "<response>" should not be returned! | |
Examples: | |
| keywords | response | | |
| &^*%$ü%! |'&^*%$%!' could not be interpreted. Please correct the construction and try again. | |
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
@focus | |
Feature: Admin Access | |
In order to view the admin page | |
As a user | |
You must be an admin | |
Scenario Outline: Redirect to four04 if user is not admin | |
Given the following user records | |
| username | password | factory | |