Public Gists by ffmike

Gravatar
Thu Jul 23 13:08:12 -0700 2009
1
2
3
require 'test_helper'
 
class NotifierTest < ActionMailer::TestCase
gist: 145676 MOVED TO http://github.com/...
Gravatar
Sun Jul 12 08:58:27 -0700 2009
1
2
3
# download, from_repo, and commit_state methods swiped from
# http://github.com/Sutto/rails-template/blob/07b044072f3fb0b40aea27b713ca61515250f5ec/rails_template.rb
 
Gravatar
Thu Jul 09 12:53:41 -0700 2009
1
2
3
      module_eval(<<-EOS)
        def #{proxy_class} # def fb_client
          @#{proxy_class} ||= get_#{proxy_class} # @fb_client ||= get_fb_client
Gravatar
Thu Jul 09 11:18:25 -0700 2009
1
2
3
controller
 
  def edit
Gravatar
Wed Jul 08 09:40:44 -0700 2009
1
2
3
Hallo Mike,
 
it might be that you separate your roles along a different axis than we do.
Gravatar
Fri Jul 03 14:15:22 -0700 2009
1
2
3
  class HTTPGenericRequest
    # Monkey-patch Net::HTTPGenericRequest to read > 1024 bytes from the local data
    # source at a time (used in streaming PUTs)
Gravatar
Tue Jun 30 06:06:31 -0700 2009
1
2
3
su root, then env shows (among other things):
 
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
Gravatar
Sat Jun 27 08:14:08 -0700 2009
1
2
3
UsersController#create:
 
  def create
Gravatar
Sat Jun 20 04:27:20 -0700 2009
1
2
3
webadmin@papaya:~$ sudo apt-get update
Get:1 http://ftp.us.debian.org etch Release.gpg [1032B]
Get:2 http://security.debian.org etch/updates Release.gpg [1032B]
Gravatar
Fri Jun 19 12:30:02 -0700 2009
1
2
3
require File.dirname(__FILE__) + '/../../test_helper'
require 'action_view/test_case'
class EntriesHelperTest < ActionView::TestCase
Gravatar
Fri Jun 19 12:24:31 -0700 2009
1
2
3
  context "display_invoice" do
    should "display without a contact if there is no contact" do
      @invoice = Invoice.spawn(:amount => 500.0, :invoice_date => Date.new(2009,4,1))
Gravatar
Wed May 27 11:42:24 -0700 2009
1
2
3
              <p id="main_tax">
                <label for="invoice_sales_tax_bundle_id">Sales Tax</label>
                <select id="invoice_sales_tax_bundle_id" name="invoice[sales_tax_bundle_id]"><option value=""></option>
Gravatar
Tue May 26 16:34:41 -0700 2009
1
2
3
>> SalesTaxBundle.create([{:name => 'tax1'}, {:name => 'tax2'}])
  SalesTaxBundle Columns (1.7ms) SHOW FIELDS FROM `sales_tax_bundles`
  SQL (0.1ms) BEGIN
Gravatar
Fri May 22 11:20:01 -0700 2009
1
2
3
      invoice_lines.credit.each do |line|
        remaining_amount = line.apply_payment(remaining_amount, rec_date, check_ref)
      end
Gravatar
Tue Oct 28 06:45:58 -0700 2008
1
The quick brown fox jumped over the lazy dogg
Gravatar
Mon Sep 22 12:15:12 -0700 2008
1
2
3
 makeSearchCommand({
   name: "turl",
   synonyms: ["twitterurl"],