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-1.0.6 lib/generators/sunrise/templates/spec/controllers/pages_controller_spec.rb
sunrise-cms-1.0.5 lib/generators/sunrise/templates/spec/controllers/pages_controller_spec.rb
sunrise-cms-1.0.4 lib/generators/sunrise/templates/spec/controllers/pages_controller_spec.rb
sunrise-cms-1.0.3 lib/generators/sunrise/templates/spec/controllers/pages_controller_spec.rb
sunrise-cms-1.0.2 lib/generators/sunrise/templates/spec/controllers/pages_controller_spec.rb
sunrise-cms-1.0.1 lib/generators/sunrise/templates/spec/controllers/pages_controller_spec.rb
sunrise-cms-1.0.0 lib/generators/sunrise/templates/spec/controllers/pages_controller_spec.rb
sunrise-cms-1.0.0.rc3 lib/generators/sunrise/templates/spec/controllers/pages_controller_spec.rb
sunrise-cms-1.0.0.rc2 lib/generators/sunrise/templates/spec/controllers/pages_controller_spec.rb
sunrise-cms-1.0.0.rc1 lib/generators/sunrise/templates/spec/controllers/pages_controller_spec.rb
sunrise-cms-0.7.0.rc2 lib/generators/sunrise/templates/spec/controllers/pages_controller_spec.rb
sunrise-cms-0.7.0.rc1 lib/generators/sunrise/templates/spec/controllers/pages_controller_spec.rb
sunrise-cms-0.6.11 lib/generators/sunrise/templates/spec/controllers/pages_controller_spec.rb
sunrise-cms-0.6.10 lib/generators/sunrise/templates/spec/controllers/pages_controller_spec.rb
sunrise-cms-0.6.9 lib/generators/sunrise/templates/spec/controllers/pages_controller_spec.rb
sunrise-cms-0.6.8 lib/generators/sunrise/templates/spec/controllers/pages_controller_spec.rb
sunrise-cms-0.6.7 lib/generators/sunrise/templates/spec/controllers/pages_controller_spec.rb
sunrise-cms-0.6.6 lib/generators/sunrise/templates/spec/controllers/pages_controller_spec.rb
sunrise-cms-0.6.5 lib/generators/sunrise/templates/spec/controllers/pages_controller_spec.rb
sunrise-cms-0.6.5 spec/tmp/spec/controllers/pages_controller_spec.rb