Skip to content

Instantly share code, notes, and snippets.

View rianby64's full-sized avatar
๐Ÿ‹
Let's GO

Andres Rios rianby64

๐Ÿ‹
Let's GO
View GitHub Profile
@rianby64
rianby64 / package.json
Last active January 18, 2016 11:46
A package.json example for Apolog
{
"name": "example",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "jasmine"
},
"license": "ISC",
"devDependencies": {
@rianby64
rianby64 / apolog.js
Last active January 14, 2016 19:34
Apolog loader for Jasmine
'use strict'
var apolog = require('apolog'),
fs = require('fs'),
_loadFeature = apolog.loadFeature;
global.feature = apolog.feature;
global.scenario = apolog.scenario;
global.background = apolog.background;
global.given = apolog.given;
global.when = apolog.when;
'use strict';
loadFeature('features/simpleStory.feature');
feature('Refund item', function() {
scenario(/(\w+) returns a faulty microwave/, function(user) {
given(/(\w+) has bought a microwave for \$(\d+)/, function(client, summa) {
});
and('he has a receipt', function() {
Feature: Refund item
Scenario: Jeff returns a faulty microwave
Given Jeff has bought a microwave for $100
And he has a receipt
When he returns the microwave
Then Jeff should be refunded $100