Sha256: a7f04e1f8a5cbc146c9a1fc9acf0cb1b9f692b5874c5552ca8d05619058a6051

Contents?: true

Size: 481 Bytes

Versions: 66

Compression:

Stored size: 481 Bytes

Contents

require 'spec_helper'

describe PagesController do
  render_views
  
  before(:all) do
    @root = FactoryGirl.create(:structure_main)
  end
    
  context "page" do
    before(:each) { @page = FactoryGirl.create(:structure_page, :parent => @root) }
    
    it "should render show action" do
      get :show, :id => @page.slug
      
      assigns(:structure).should == @page
      
      response.should be_success
      response.should render_template('show')
    end
  end
end

Version data entries

66 entries across 45 versions & 2 rubygems

Version Path
sunrise-cms-0.3.0.rc lib/generators/sunrise/templates/spec/controllers/pages_controller_spec.rb
sunrise-core-0.2.2 lib/generators/sunrise/templates/spec/controllers/pages_controller_spec.rb
sunrise-core-0.2.1 spec/tmp/spec/controllers/pages_controller_spec.rb
sunrise-core-0.2.1 lib/generators/sunrise/templates/spec/controllers/pages_controller_spec.rb
sunrise-core-0.2.0 spec/tmp/spec/controllers/pages_controller_spec.rb
sunrise-core-0.2.0 lib/generators/sunrise/templates/spec/controllers/pages_controller_spec.rb