Stock Helper
Looking for an alternative to using instance variables across steps in Cucumber?
Example Usages
An alternative to having a whole bunch instance variables with unknown values polluting your steps
Without stock:
"^\$?\-?([1-9]{1}[0-9]{0,2}(\,\d{3})*(\.\d{0,2})?|[1-9]{1}\d{0,}(\.\d{0,2})?|0(\.\d{0,2})?|(\.\d{1,2}))$|^\-?\$?([1-9]{1}\d{0,2}(\,\d{3})*(\.\d{0,2})?|[1-9]{1}\d{0,}(\.\d{0,2})?|0(\.\d{0,2})?|(\.\d{1,2}))$|^\(\$?([1-9]{1}\d{0,2}(\,\d{3})*(\.\d{0,2})?|[1-9]{1}\d{0,}(\.\d{0,2})?|0(\.\d{0,2})?|(\.\d{1,2}))\)$" |
@browser.screenshot.save 'my_screenshot.png' | |
`curl -D- -X POST -H "Authorization: Basic YOUR_USERNAME_AND_PASS_IN_BASE64" -H "X-Atlassian-Token: nocheck" -F "file=@my_screenshot.png" http://jira.mycompany.com/rest/api/2/issue/PROJ-123/attachments` |
Looking for an alternative to using instance variables across steps in Cucumber?
An alternative to having a whole bunch instance variables with unknown values polluting your steps
Without stock:
dbwest: | |
vim modal editing | |
zen coding (quick html) | |
This Gist shows how to set up a Rails project to practice BDD with CoffeeScript, Guard and Jasmine. You can see this setup in action on Vimeo
bundle install
mate Guardfile
bundle exec jasmine init
mate spec/support/yasmine.ym
bundle exec guard
source 'https://rubygems.org' | |
gem 'rails', '3.2.3' | |
# Bundle edge Rails instead: | |
# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
gem 'pg' | |
gem 'bcrypt-ruby' | |
# gem 'disguise' |
#in rails proj dir | |
$ bundle update | |
Resolving dependencies... | |
Using rake (0.9.6) | |
Using RedCloth (4.2.9) | |
Using i18n (0.6.4) | |
Using multi_json (1.3.7) | |
Using activesupport (3.2.8) | |
Using builder (3.0.4) | |
Using activemodel (3.2.8) |
source "http://rubygems.org" | |
gem 'watir-webdriver' | |
gem 'selenium-webdriver' |
description "appium server" | |
author "startup script: kvz - http://kevin.vanzonneveld.net" | |
# used to be: start on startup | |
# until we found some mounts weren't ready yet while booting: | |
start on started mountall | |
stop on shutdown | |
# Automatically Respawn: | |
respawn |
For those new to SQL you have a number of online courses and tutorials to select from in order to level up your knowledge.
The challenge is to capture a number of "flags" by importing the datasets we've provided and finding the answers below.