Public Gists by ohammersmith

Gravatar
Thu Oct 08 09:01:19 -0700 2009
1
2
3
Index: test/unit/integrations/helpers/amazon_paynow_helper_test.rb
===================================================================
--- test/unit/integrations/helpers/amazon_paynow_helper_test.rb (revision 0)
Gravatar
Wed Jul 01 13:29:26 -0700 2009
1
2
3
 ~ Params: {"submit"=>"Verify", "action"=>"start", "controller"=>"chef_server_slice/openid_consumer", "openid_identifier"=>"https://172.18.6.101/openid/server/node/edge4_in_rprj_com"}
 ~ WARNING: making https request to https://172.18.6.101/openid/server/node/edge4_in_rprj_com without verifying server certificate; no CA path was specified.
 ~ Discovery failed for https://172.18.6.101/openid/server/node/edge4_in_rprj_com: Failed to fetch identity URL https://172.18.6.101/openid/server/node/edge4_in_rprj_com : Error connecting to SSL URL https://172.18.6.101/openid/server/node/edge4_in_rprj_com: hostname does not match - (Merb::ControllerExceptions::BadRequest)
Gravatar
Tue Jun 30 06:58:14 -0700 2009
1
2
3
require 'rubygems'
require 'wirble'
# Wirble.init
Gravatar
Tue Jun 02 14:40:12 -0700 2009
1
2
3
#!/opt/local/bin/ruby
 
require 'rubygems'
Gravatar
Tue Jun 02 11:39:20 -0700 2009
1
2
3
<%= branch = `git symbolic-ref HEAD`.gsub('refs/heads/', '').chomp.gsub('/', '_') %>
 
login: &login
Gravatar
Tue May 05 09:02:37 -0700 2009
1
2
3
class FoosController
  
  def new
Gravatar
Fri May 01 13:02:23 -0700 2009
1
2
3
complete -C "/usr/bin/gemedit --complete" gemedit
 
alias wd='ruby -S watchdog.rb'
gist: 104117 Snippets needed to make web...
Gravatar
Wed Apr 29 15:38:08 -0700 2009
1
./script/generate integration selenium_attach_file
Gravatar
Tue Apr 28 14:17:00 -0700 2009
1
2
3
describe "prototype widget helper", :type => :view do
  
  describe "tab1_link" do
Gravatar
Mon Apr 27 14:31:38 -0700 2009
1
2
3
  map.resources :users, :controller => 'clearance/users' do |users|
    users.resource :password,
      :controller => 'clearance/passwords',
Gravatar
Mon Apr 27 08:56:19 -0700 2009
1
2
3
irb(main):001:0> h = {:foo => "bar", :bar => "foo"}
=> {:bar=>"foo", :foo=>"bar"}
irb(main):002:0> h
Gravatar
Thu Apr 23 20:35:31 -0700 2009
1
2
3
Given /^There (?:is|are) (\d+|a) (.*?)(.*?)(?: with "(.*?)" for (.*?))?$/ do |count, model, factory_suffix, value, attribute|
  count = 1 if count == "a"
  factory_name = model.singularize << factory_suffix.gsub(" ", "_")
Gravatar
Wed Apr 22 17:17:23 -0700 2009
1
2
3
  describe "#route_for" do
    it "should be nested shallowly under forums as topics" do
      params_from(:get, '/forums/123/topics').should == {:controller => "forum_posts", :action => "index", :forum_id => "123" }
Gravatar
Mon Apr 20 12:12:46 -0700 2009
1
2
3
Given /^WH([O]+)AH (.*)$/ do |ohs, actual_step|
  ohs.length.times { sleep 10 }
  Given actual_step
Gravatar
Fri Apr 17 13:41:59 -0700 2009
1
2
3
<h1>Custom form demo</h1>
 
 
Gravatar
Fri Apr 17 12:45:42 -0700 2009
1
2
3
<% form_tag(:action => "create") do %>
  <% for question in @questions %>
    <%= h question[:name] %>
gist: 95497 Working out nested resource...
Gravatar
Tue Apr 14 16:41:25 -0700 2009
1
2
3
(in /Users/otto/Desktop/Incubator/shallow_routes)
        communities GET /communities(.:format) {:action=>"index", :controller=>"communities"}
                    POST /communities(.:format) {:action=>"create", :controller=>"communities"}
Gravatar
Wed Apr 08 09:13:06 -0700 2009
1
2
3
IRC
========
 
Gravatar
Fri Mar 27 12:57:59 -0700 2009
1
2
3
When /^I fill in the country for the degree with "(.*)"$/ do |value|
  within("#degrees") do
    fill_in("Country", value)
Gravatar
Tue Mar 10 08:33:48 -0700 2009
1
2
3
<% if ENV["RAILS_ENV"] == "development" %>
 
<div id="debug">