Skip to content

Instantly share code, notes, and snippets.

View aslakhellesoy's full-sized avatar
🤠
typing...

Aslak Hellesøy aslakhellesoy

🤠
typing...
View GitHub Profile
@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 |
@aslakhellesoy
aslakhellesoy / github_auto_messager.rb
Created May 20, 2011 10:22 — forked from corroded/github_auto_messager.rb
This is a mechanize github message sender for the authors of all cucumber tmbundle forks
require 'rubygems'
require 'mechanize'
require 'net/http'
require 'json'
#get the tmbundle forkers
base_url = "http://github.com/api/v2/json/repos/show/cucumber/cucumber-tmbundle/network"
cuke_tmbundle_forkers = JSON.parse(Net::HTTP.get_response(URI.parse(base_url)).body).first[1].map{ |x| x["owner"] }
agent = Mechanize.new
@aslakhellesoy
aslakhellesoy / edit_request.feature
Created October 5, 2011 17:49 — forked from patrick99e99/edit_request.feature
Refactored from imperative to declarative
Feature: Updating an existing request
In order to change my mind about what I need
I want to be able to edit my Request
Background: Logged in via facebook with one request
Given I am logged in with facebook
And I have a request for "Dragon's Lair Arcade Game" at $2000
Scenario: Logged in users can edit requests
When I change the request to "iPhone6" at $300
[core]
repositoryformatversion = 0
filemode = true
logallrefupdates = true
autocrlf = false
[remote "origin"]
url = [email protected]:FinalFive/cucumber-jvm.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin