Skip to content

Instantly share code, notes, and snippets.

Avatar

Tim Hanrahan dgwmfo

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