Public Gists by brookr

Gravatar
Sat Nov 14 22:41:24 -0800 2009
1
2
3
gem 'faker'
require 'faker'
 
Gravatar
Mon Nov 09 09:44:29 -0800 2009
1
2
3
def load_sql_file(file)
  config = ActiveRecord::Base.configurations[RAILS_ENV]
  database = config['database']
Gravatar
Tue Jun 02 11:43:54 -0700 2009
1
2
3
require 'rubygems'
require 'utility_belt'
require 'wirble'
Gravatar
Tue May 26 15:23:47 -0700 2009
1
2
3
gem 'faker'
require 'faker'
# Clean out what is there
Gravatar
Mon Mar 16 14:57:27 -0700 2009
1
2
3
require File.dirname(__FILE__) + '/../test_helper'
 
class SurveysControllerTest < ActionController::TestCase
Gravatar
Mon Mar 09 16:57:00 -0700 2009
1
2
3
class SurveysController < ApplicationController
  # GET /surveys
  # GET /surveys.xml
Gravatar
Mon Mar 09 16:40:32 -0700 2009
1
2
3
survey_controller_test.rb:
 
 
Gravatar
Mon Mar 09 16:40:22 -0700 2009
1
2
3
  context 'PUT to update for existing survey' do
    setup do
      @survey = Factory(:survey)
Gravatar
Mon Mar 09 15:54:55 -0700 2009
1
2
3
Rails 2.2.2, Shoulda 2.9.1, Factory Girl 1.2.0