Skip to content

Instantly share code, notes, and snippets.

@johnivanoff
johnivanoff / Test 123
Created April 5, 2011 02:53
Testing 123
<cfoutput>#now()#</cfoutput>
<cfoutput query="Betty">#name#</cfoutput>
@johnivanoff
johnivanoff / iPhone_contact_html_mockup
Created November 16, 2011 17:21
An iPhone Contact Page Marked Up With HTML5
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Person</title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<meta name="viewport" content="user-scalable=no, width=device-width" />
<style>
@johnivanoff
johnivanoff / gist:1699838
Created January 29, 2012 17:55
i18n Create Scenario with wip flag
@wip
Scenario: Create a new location
Given I am on new location page
And I fill in "Name" with "Shiny location"
When I press "Create"
Then I should see "Shiny location"
@johnivanoff
johnivanoff / gist:1699848
Created January 29, 2012 17:56
i18n Create Scenario with wip flag
Scenario: Create a new location
Given I am on new location page
And I fill in "Name" with "Shiny location"
When I press "Create"
Then I should see "Shiny location"
$ cucumber --profile wip
Using the wip profile...
Feature: Manage locations
In order to manage locations
As a user
I want to create and edit my locations.
@wip
Scenario: Create a new location # features/manage_locations.feature:19
Given I am on new location page # features/manage_locations.feature:20
Given /^I am on new location page$/ do
pending # express the regexp above with the code you wish you had
end
Given /^I fill in "([^"]*)" with "([^"]*)"$/ do |arg1, arg2|
pending # express the regexp above with the code you wish you had
end
When /^I press "([^"]*)"$/ do |arg1|
pending # express the regexp above with the code you wish you had
Given /^I am on new location page$/ do
visit(new_locations_path)
end
$ cucumber --profile wip
Using the wip profile...
Feature: Manage locations
In order to manage locations
As a user
I want to create and edit my locations.
@wip
Scenario: Create a new location # features/manage_locations.feature:19
Given I am on new location page # features/step_definitions/location_steps.rb:22
match 'locations/new' => 'locations#new', :as => :new_locations