Sha256: 7837e76d1c381c40b766d0ca7bec59067b167dd7ead53f72f1d5a428ea6ff146

Contents?: true

Size: 419 Bytes

Versions: 6

Compression:

Stored size: 419 Bytes

Contents

RSpec.feature 'Rendering navigation' do
  background do
    SimpleNavigation.set_env(RailsApp::Application.root, 'test')
  end

  scenario 'Rendering basic navigation', type: :feature do
    visit '/base_spec'

    expect(page).to have_content('Item 1')
    expect(page).to have_content('Item 2')
    expect(page).to have_selector('li.item_1 a#link_1')
    expect(page).to have_selector('li.item_2 a#link_2')
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
simple-navigation-4.4.0 spec/integration/rendering_navigation_spec.rb
simple-navigation-4.3.0 spec/integration/rendering_navigation_spec.rb
simple-navigation-4.2.0 spec/integration/rendering_navigation_spec.rb
simple-navigation-4.1.0 spec/integration/rendering_navigation_spec.rb
simple-navigation-4.0.5 spec/integration/rendering_navigation_spec.rb
simple-navigation-4.0.4 spec/integration/rendering_navigation_spec.rb