Public Gists by ianwhite

gist: 239570 How to use any cucumber ste...
Gravatar
Fri Nov 20 07:49:27 -0800 2009
1
2
3
# Allow all cucumber steps to be reused as scoped steps, and enable human friendly
# interpretation of selectors.
#
Gravatar
Tue Oct 27 07:46:35 -0700 2009
1
2
3
module VisitorHelper
  # give this method an object or collection, optional other arguments, and a block. When you call visit within that block, the block itself will be called with the argument(s)
  #
Gravatar
Tue Apr 28 08:33:39 -0700 2009
1
2
3
Smoke.feed(:twitter) do
  url "http://twitter.com/statuses/user_timeline/14431882.rss"
  discard :title, /(@|#)/
Gravatar
Mon Mar 16 02:54:05 -0700 2009
1
2
3
ary.each do |i|
  puts i
end.any? or puts 'none'
Gravatar
Fri Feb 27 10:09:56 -0800 2009
1
2
3
# just using ruby (see below) makes for a pretty easy fix in this case, but it could
# get pretty ugly pretty quick which a real world case. Having a 'One True Namespace'
# for conditions would keep the ugly at bay.
Gravatar
Fri Feb 27 03:08:01 -0800 2009
1
2
3
# Snippet from inherit_views Rakefile
#
# The cruise (CI) task runs 'doc:publish' if the build passes
Gravatar
Sun Feb 01 12:59:14 -0800 2009
1
2
3
# Example of pickle: http://github.com/ianwhite/pickle
#
# Just knocked this up to provide an acceptance test for a bug. Took 2 mins
Gravatar
Mon Nov 24 21:16:28 -0800 2008
1
2
3
xenon:~/dev/ianwhite/response_for(master)$ garlic shell
Garlic interactive session: type shell commands
garlic:> cd vendor/plugins/repsonse_for
Gravatar
Mon Nov 24 20:33:53 -0800 2008
1
2
3
# example of a 'matrix' set of target versions with garlic
#
# just for kicks I stuck in all the 2.x stable branches, + some 3 different rspecs
gist: 28376 auto generate scoped versio...
Gravatar
Sun Nov 23 20:19:05 -0800 2008
1
2
3
# Stick this in features/step_definitions/scoped_webrat_steps.rb
#
# If your webrat steps defines:
Gravatar
Sun Oct 19 15:03:27 -0700 2008
1
2
3
  class TheController < ActionController::Base
    self.view_paths = [File.join(File.dirname(__FILE__), '../fixtures/views')]