Public Gists by zdennis

Gravatar
Wed Mar 04 11:59:59 -0800 2009
1
2
3
xml = '<?xml version="1.0" encoding="UTF-8"?>
 
<multistatus xmlns="DAV:">
Gravatar
Thu Feb 19 17:27:58 -0800 2009
1
2
3
<%=h status %>
 
<% content_for :footer %>
Gravatar
Thu Feb 19 13:40:36 -0800 2009
1
2
3
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
 
describe "/items/edit.html.erb" do
Gravatar
Mon Feb 16 06:21:11 -0800 2009
1
2
3
#!/usr/bin/ruby
 
require 'rubygems'
Gravatar
Sun Feb 15 11:36:41 -0800 2009
1
2
3
== without rescue_from
 
 
Gravatar
Fri Feb 13 11:32:22 -0800 2009
1
2
3
Webrat.configure do |config|
  config.mode = :selenium
end
Gravatar
Mon Feb 02 13:50:14 -0800 2009
1
2
3
/Users/zdennis/source/mhs_projects/quest/vendor/plugins/cucumber/bin/../lib/cucumber/parser/treetop_ext.rb:58:in `parse_or_fail': features/expenses_reimbursements/staff_member_editing_submitted_expense_reimbursements.feature:46:3: Parse error, expected one of (Cucumber::Parser::SyntaxError)
, """, Given, When, Then, And, But, #, @, Scenario:, Scenario Outline:. from /Users/zdennis/source/mhs_projects/quest/vendor/plugins/cucumber/bin/../lib/cucumber/parser/treetop_ext.rb:20:in `parse_file'
 
Gravatar
Sat Jan 10 15:13:08 -0800 2009
1
2
3
    def rescue_action_with_fast_errors(exception)
      unless rescue_with_handler(exception)
        if use_rails_error_handling?
Gravatar
Sat Jan 10 15:13:00 -0800 2009
1
2
3
    def rescue_action_with_fast_errors(exception)
      unless rescue_with_handler(exception)
        if use_rails_error_handling?
Gravatar
Thu Dec 04 16:16:52 -0800 2008
1
2
3
# When I run the specs above, the following error occurs:
 
$ script/spec -c spec/controllers/strange_name_error.rb
Gravatar
Tue Nov 25 11:12:38 -0800 2008
1
2
3
Story: Users without fiscal admin role accessing Invoices
  In order to ensure users that shouldn't have access to fiscal components don't
  As a user who isn't a fiscal admin
Gravatar
Fri Nov 07 18:35:26 -0800 2008
1
2
3
class Expense < ActiveRecord::Base
  composed_of :amount, :class_name => "Money", :mapping => [ %w(amount_in_cents cents)], :converter => lambda { |amount| amount.to_money }
end
Gravatar
Fri Nov 07 11:43:46 -0800 2008
1
2
3
gcc -O2 -g -Wall -Wno-parentheses -pipe -fno-common -I. -I.ext/include/i386-darwin9.5.0 -I./include -I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o parse.o -c parse.c
In file included from parse.y:6022:
lex.c:1: error: syntax error before ‘<<’ token
Gravatar
Fri Oct 31 10:44:48 -0700 2008
1
2
3
class User < ActiveRecord::Base
  has_many :roles
  
Gravatar
Tue Sep 30 17:08:58 -0700 2008
1
2
3
class User < ActiveRecord::Base
  validate :only_superusers_can_do_foo
 
Gravatar
Tue Sep 30 05:54:31 -0700 2008
1
2
3
require File.dirname(__FILE__) + '/../spec_helper'
 
class Foo
Gravatar
Fri Aug 01 10:52:29 -0700 2008
1
2
3
class Surveys::ReportController < ApplicationController
  def show
    Survey.find()