Skip to content

Instantly share code, notes, and snippets.

View dgwmfo's full-sized avatar

Tim Hanrahan dgwmfo

  • Molex
  • Downers Grove, Illinois
View GitHub Profile
@dgwmfo
dgwmfo / testimonials_controller_spec.rb
Created December 7, 2010 12:16
Tests for my testimonials controller
require 'spec_helper'
describe Admin::TestimonialsController do
integrate_views
describe "GET 'new'" do
before(:each) do
@user = Factory(:user)
end
@dgwmfo
dgwmfo / Testimonials_controller.rb
Created December 6, 2010 14:24
Testimonials model
class Admin::TestimonialsController < Admin::BaseController
def show
@testimonial = Testimonial.find(params[:id])
end
def new
@page_title = "Create New Testimonial"
end