Sha256: ee648a56fe8db4eb74ebe1d93f0eb7950ed2431312e18c5ac3411ba8d341b958

Contents?: true

Size: 476 Bytes

Versions: 37

Compression:

Stored size: 476 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 "#menu" do
      page.should have_link link_name
    end
  end

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

end

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
brightcontent-core-2.0.12 spec/features/menu_spec.rb
brightcontent-core-2.0.11 spec/features/menu_spec.rb
brightcontent-core-2.0.10 spec/features/menu_spec.rb
brightcontent-core-2.0.9 spec/features/menu_spec.rb
brightcontent-core-2.0.8 spec/features/menu_spec.rb
brightcontent-core-2.0.7 spec/features/menu_spec.rb
brightcontent-core-2.0.6 spec/features/menu_spec.rb
brightcontent-core-2.0.5 spec/features/menu_spec.rb
brightcontent-core-2.0.3 spec/features/menu_spec.rb
brightcontent-core-2.0.2 spec/features/menu_spec.rb
brightcontent-core-2.0.1 spec/features/menu_spec.rb
brightcontent-core-2.0.0.alpha6 spec/features/menu_spec.rb
brightcontent-core-2.0.0.alpha5 spec/features/menu_spec.rb
brightcontent-2.0.0.alpha3 core/spec/features/menu_spec.rb
brightcontent-core-2.0.0.alpha3 spec/features/menu_spec.rb
brightcontent-2.0.0.alpha2 core/spec/features/menu_spec.rb
brightcontent-core-2.0.0.alpha2 spec/features/menu_spec.rb