Sha256: 19c8cdab839583100493e9d455888ed48a1a0db34e8ccd329a7988f2ec9fcf14
Contents?: true
Size: 640 Bytes
Versions: 1
Compression:
Stored size: 640 Bytes
Contents
require 'rails_helper' RSpec.describe 'layouts/pwb/application', type: :view do # include Pwb::ApplicationHelper before do view.extend Pwb::Engine.routes.url_helpers view.extend Pwb::ApplicationHelper end before(:each) do assign(:current_agency, Pwb::Agency.create!({company_name: 'test'})) assign(:sections, [ Pwb::Section.create!({link_path: 'about_us_path', link_key: 'aboutUs'}), Pwb::Section.create!({link_path: 'contact_us_path', link_key: 'contactUs'}), ]) end it 'renders navbar-header' do render expect(rendered).to have_selector(".navbar-header") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pwb-0.0.1 | spec/views/pwb/application_layout.html.erb_spec.rb |