Sha256: 31ec295222628a0552d18ea75ce610008976ef953da0efdcadcea606ab480bc7

Contents?: true

Size: 955 Bytes

Versions: 13

Compression:

Stored size: 955 Bytes

Contents

require "rails_helper"

feature "Content Author - Arms", type: :feature do
  fixtures :all

  context "Logged in as a content author" do
    before do
      sign_in users :content_author1
    end

    scenario "should see all arms" do
      visit "/think_feel_do_dashboard/arms"

      expect(page).to have_link "Arm 1"
      expect(page).to have_link "Arm 2"
      expect(page).to have_link "Arm 3"
      expect(page).to have_link "Arm 4"
    end

    scenario "should have appropriate management links" do
      visit "/think_feel_do_dashboard/arms"
      click_on "Arm 1"

      expect(page).to have_button "Manage Content"
      expect(page).to have_link "Content Module"
      expect(page).to have_link "Slideshows"
      expect(page).to have_link "Lesson Modules"
    end

    scenario "should not display group links" do
      visit "/think_feel_do_dashboard/arms/#{arms(:arm1).id}"

      expect(page).to_not have_link "Group 1"
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
think_feel_do_dashboard-1.2.0.beta1 spec/features/content_author/arms_spec.rb
think_feel_do_dashboard-1.1.21 spec/features/content_author/arms_spec.rb
think_feel_do_dashboard-1.1.20 spec/features/content_author/arms_spec.rb
think_feel_do_dashboard-1.1.19 spec/features/content_author/arms_spec.rb
think_feel_do_dashboard-1.1.18 spec/features/content_author/arms_spec.rb
think_feel_do_dashboard-1.1.17 spec/features/content_author/arms_spec.rb
think_feel_do_dashboard-1.1.16 spec/features/content_author/arms_spec.rb
think_feel_do_dashboard-1.1.15 spec/features/content_author/arms_spec.rb
think_feel_do_dashboard-1.1.14 spec/features/content_author/arms_spec.rb
think_feel_do_dashboard-1.1.13 spec/features/content_author/arms_spec.rb
think_feel_do_dashboard-1.1.12 spec/features/content_author/arms_spec.rb
think_feel_do_dashboard-1.1.11 spec/features/content_author/arms_spec.rb
think_feel_do_dashboard-1.1.10 spec/features/content_author/arms_spec.rb