Sha256: 56aba8fa27b2ea300807a1dad002979640e1a61e340c07001c6bdae8cd516e92

Contents?: true

Size: 445 Bytes

Versions: 10

Compression:

Stored size: 445 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

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

  it "show action should render show template" do
    get :show, :page_slug => '/bunnicula/'
    response.should render_template(:show)
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
site_logic-1.9.2 spec/controllers/pages_controller_spec.rb
site_logic-1.9.1 spec/controllers/pages_controller_spec.rb
site_logic-1.9.0 spec/controllers/pages_controller_spec.rb
site_logic-1.8.0 spec/controllers/pages_controller_spec.rb
site_logic-1.7.1 spec/controllers/pages_controller_spec.rb
site_logic-1.7.0 spec/controllers/pages_controller_spec.rb
site_logic-1.6.10 spec/controllers/pages_controller_spec.rb
site_logic-1.6.9 spec/controllers/pages_controller_spec.rb
site_logic-1.6.8 spec/controllers/pages_controller_spec.rb
site_logic-1.6.7 spec/controllers/pages_controller_spec.rb