Skip to content

Instantly share code, notes, and snippets.

View jbpros's full-sized avatar
🖐️
yo

Julien Biezemans jbpros

🖐️
yo
View GitHub Profile
Given a user
When I GET the user as JSON
Then I receive the JSON representation of the user
TypeError: Object #<World> has no method 'visit'
at World.<anonymous> (/Users/jnh/Dev/ember-newsflash/features/step_definitions/inMemoryAdapter.coffee:8:19)
at Object.invoke (/Users/jnh/Dev/ember-newsflash/node_modules/cucumber/lib/cucumber/support_code/step_definition.js:29:14)
at Object.execute (/Users/jnh/Dev/ember-newsflash/node_modules/cucumber/lib/cucumber/ast/step.js:142:22)
at Object.acceptVisitor (/Users/jnh/Dev/ember-newsflash/node_modules/cucumber/lib/cucumber/ast/step.js:133:12)
at Object.executeStep (/Users/jnh/Dev/ember-newsflash/node_modules/cucumber/lib/cucumber/runtime/ast_tree_walker.js:170:12)
at Object.processStep (/Users/jnh/Dev/ember-newsflash/node_modules/cucumber/lib/cucumber/runtime/ast_tree_walker.js:165:14)
at /Users/jnh/Dev/ember-newsflash/node_modules/cucumber/lib/cucumber/runtime/ast_tree_walker.js:67:16
at callUserFunctionAndBroadcastAfterEvent (/Users/jnh/Dev/ember-newsflash/node_modules/cucumber/lib/cucumber/runtime/ast_tree_walker.js:91:9)
BeforeFeatures
BeforeFeature
BeforeScenario
BeforeStep
StepResult
AfterStep
AfterScenario
AfterFeature
AfterFeatures
@jbpros
jbpros / gist:1948548
Created March 1, 2012 09:30
Cucumber.js resources
@jbpros
jbpros / gist:1895045
Created February 23, 2012 21:04
Cucumber shortened URLs
http://git.io/cukes -> https://github.com/cucumber
http://git.io/cuke -> https://github.com/cucumber/cucumber
http://git.io/cuke4duke -> https://github.com/cucumber/cuke4duke
http://git.io/cukebootstrap -> https://github.com/cucumber/cucumber-boostrap
http://git.io/cukefeatures -> https://github.com/cucumber/cucumber-features
http://git.io/cukehtml -> https://github.com/cucumber/cucumber-html
http://git.io/cukejvm -> https://github.com/cucumber/cucumber-jvm
http://git.io/cukejs -> https://github.com/cucumber/cucumber-js
http://git.io/cukepatch -> https://github.com/cucumber/cukepatch
http://git.io/cukerails -> https://github.com/cucumber/cucumber-rails
@jbpros
jbpros / tweets.html
Created January 11, 2012 00:57
Detect manual- and auto-scrolling on iOs
<!doctype html>
<meta charset="utf-8">
<meta name="viewport" content="user-scalable=no, initial-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="http://sharedfil.es/style-objajqsQWR.css">
<title>example</title>
<body>
<p id="log"></p>
Feature: subscribe
Scenario: ...
Given an interest I'm not subscribed to
When I subscribe to the interest
Then I should be subscribed to the interest
describe Class do
describe "SOME_CONSTANT" do
it "is 12" do
Class::SOME_CONSTANT.should eql 12
end
end
end
@jbpros
jbpros / ace_gherkin_mode.js
Created November 4, 2011 20:17
Paste this into a console when editing a feature on Github and see the light!
//// https://github.com/cucumber/ace/blob/gherkin-mode/lib/ace/mode/gherkin_highlight_rules.js ////
define('ace/mode/gherkin_highlight_rules', function(require, exports, module) {
var oop = require("pilot/oop");
var TextHighlightRules = require("ace/mode/text_highlight_rules").TextHighlightRules;
var GherkinHighlightRules = function()
{
this.$rules = {