Sha256: 41d2ef67cae27588d689eb9180cf8b50440a046c1d2e9716b34e691dee1341ed

Contents?: true

Size: 480 Bytes

Versions: 24

Compression:

Stored size: 480 Bytes

Contents

require 'spec_helper'

feature "Menu" do
  scenario "Shows default menu" do
    sign_in
    menu_should_not_have_link "Sessions"
  end

  scenario "Shows menu for extra resources" do
    sign_in
    menu_should_have_link "Blogs"
  end

  def menu_should_have_link(link_name)
    within ".js-menu" do
      page.should have_link link_name
    end
  end

  def menu_should_not_have_link(link_name)
    within ".js-menu" do
      page.should have_no_link link_name
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
brightcontent-core-2.6.0 spec/features/menu_spec.rb
brightcontent-core-2.5.1 spec/features/menu_spec.rb
brightcontent-core-2.5.0 spec/features/menu_spec.rb
brightcontent-core-2.4.6 spec/features/menu_spec.rb
brightcontent-core-2.4.5 spec/features/menu_spec.rb
brightcontent-core-2.4.4 spec/features/menu_spec.rb
brightcontent-core-2.4.3 spec/features/menu_spec.rb
brightcontent-core-2.4.2 spec/features/menu_spec.rb
brightcontent-core-2.4.1 spec/features/menu_spec.rb
brightcontent-core-2.4.0 spec/features/menu_spec.rb
brightcontent-core-2.3.4 spec/features/menu_spec.rb
brightcontent-core-2.3.3 spec/features/menu_spec.rb
brightcontent-core-2.3.2 spec/features/menu_spec.rb
brightcontent-core-2.3.1 spec/features/menu_spec.rb
brightcontent-core-2.3.0 spec/features/menu_spec.rb
brightcontent-core-2.2.2 spec/features/menu_spec.rb
brightcontent-core-2.2.1 spec/features/menu_spec.rb
brightcontent-core-2.2.0 spec/features/menu_spec.rb
brightcontent-core-2.1.5 spec/features/menu_spec.rb
brightcontent-core-2.1.4 spec/features/menu_spec.rb