Skip to content

Instantly share code, notes, and snippets.

@burtlo
Forked from kwerle/content_controller_spec.rb
Created April 28, 2011 17:27

Revisions

  1. burtlo revised this gist Apr 28, 2011. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions spec_helper.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    # encoding: utf-8
    # This file is copied to ~/spec when you run 'ruby script/generate rspec'
    # from the project root directory.
    ENV["RAILS_ENV"] ||= 'test'
    require File.expand_path(File.join(File.dirname(__FILE__),'..','config','environment'))
    require 'spec/autorun'
    require 'spec/rails'
  2. burtlo revised this gist Apr 28, 2011. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions content_controller_spec.rb
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,8 @@
    require 'spec_helper'

    describe ContentController, :type => :controller do
    integrate_views

    describe "root" do
    it "should work" do
    get :index
  3. @kwerle kwerle created this gist Apr 28, 2011.
    10 changes: 10 additions & 0 deletions content_controller_spec.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    require 'spec_helper'

    describe ContentController, :type => :controller do
    describe "root" do
    it "should work" do
    get :index
    end
    end

    end