Sha256: cb977417b2a55c5010a5091788fefe237692ae582073502cc4e3862d0101839d

Contents?: true

Size: 380 Bytes

Versions: 9

Compression:

Stored size: 380 Bytes

Contents

require 'spec_helper'

describe PagesController do
  before :all do
    Site.destroy_all
    @site = Site.make
    @page = @site.pages.create :page_title => 'Vampire Bunnies', :content => 'Scary monsters.', :state => 'published'
  end

  it 'show action should render show template' do
    get :show, :path => 'vampire-bunnies'
    response.should render_template(:show)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
site_logic-1.9.13 spec/controllers/pages_controller_spec.rb
site_logic-1.9.12 spec/controllers/pages_controller_spec.rb
site_logic-1.9.11 spec/controllers/pages_controller_spec.rb
site_logic-1.9.10 spec/controllers/pages_controller_spec.rb
site_logic-1.9.9 spec/controllers/pages_controller_spec.rb
site_logic-1.9.8 spec/controllers/pages_controller_spec.rb
site_logic-1.9.7 spec/controllers/pages_controller_spec.rb
site_logic-1.9.6 spec/controllers/pages_controller_spec.rb
site_logic-1.9.5 spec/controllers/pages_controller_spec.rb