Sha256: 4b0768e60b472b4fe740fcce03291cf79def449c4c7d6397c66ef41c2647f7a3
Contents?: true
Size: 1.23 KB
Versions: 5
Compression:
Stored size: 1.23 KB
Contents
require 'spec_helper' describe PagesController do render_views describe "GET 'home'" do before do @controller.send(:current_or_guest_user).save get :home end it 'should respond to the #home action' do expect(response).to be_success expect(assigns(:carousel_slides)).to_not be_nil end it 'should render the home page' do expect(response.body).to have_selector('#content_home') end end describe "GET 'about'" do it 'should render the the #about action' do get :about expect(response).to be_success expect(assigns(:nav_li_active)).to_not be_nil expect(response.body).to have_selector('.about_content') end end describe "GET 'about_site'" do it 'should render the the #about_site action' do get :about_site expect(response).to be_success expect(assigns(:nav_li_active)).to_not be_nil expect(response.body).to have_selector('.about_content') end end describe "GET 'explore'" do it 'should render the the #explore action' do get :explore expect(response).to be_success expect(assigns(:nav_li_active)).to_not be_nil expect(response.body).to have_selector('.explore_content') end end end
Version data entries
5 entries across 5 versions & 1 rubygems