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.33 spec/features/menu_spec.rb
brightcontent-core-2.0.31 spec/features/menu_spec.rb
brightcontent-core-2.0.30 spec/features/menu_spec.rb
brightcontent-core-2.0.29 spec/features/menu_spec.rb
brightcontent-core-2.0.28 spec/features/menu_spec.rb
brightcontent-core-2.0.27 spec/features/menu_spec.rb
brightcontent-core-2.0.26 spec/features/menu_spec.rb
brightcontent-core-2.0.25 spec/features/menu_spec.rb
brightcontent-core-2.0.24 spec/features/menu_spec.rb
brightcontent-core-2.0.23 spec/features/menu_spec.rb
brightcontent-core-2.0.22 spec/features/menu_spec.rb
brightcontent-core-2.0.21 spec/features/menu_spec.rb
brightcontent-core-2.0.20 spec/features/menu_spec.rb
brightcontent-core-2.0.19 spec/features/menu_spec.rb
brightcontent-core-2.0.18 spec/features/menu_spec.rb
brightcontent-core-2.0.17 spec/features/menu_spec.rb
brightcontent-core-2.0.16 spec/features/menu_spec.rb
brightcontent-core-2.0.15 spec/features/menu_spec.rb
brightcontent-core-2.0.14 spec/features/menu_spec.rb
brightcontent-core-2.0.13 spec/features/menu_spec.rb