Sha256: 742269f28c53547de1241c2a731d615fa2d2fd6ad1e1fe5591090abd8ecdd115

Contents?: true

Size: 741 Bytes

Versions: 13

Compression:

Stored size: 741 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 :researcher1
      visit "/think_feel_do_dashboard/arms"
    end

    scenario "should see all arms" do
      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 "sees descriptive information about arms" do
      allow(Rails.application.config).to receive(:include_social_features)
        .and_return(true)
      click_on "Arm 1"

      expect(page).to have_text "Title: Arm 1"
      expect(page).to have_text "Is social: Yes"
    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/researchers/arms_spec.rb
think_feel_do_dashboard-1.1.21 spec/features/researchers/arms_spec.rb
think_feel_do_dashboard-1.1.20 spec/features/researchers/arms_spec.rb
think_feel_do_dashboard-1.1.19 spec/features/researchers/arms_spec.rb
think_feel_do_dashboard-1.1.18 spec/features/researchers/arms_spec.rb
think_feel_do_dashboard-1.1.17 spec/features/researchers/arms_spec.rb
think_feel_do_dashboard-1.1.16 spec/features/researchers/arms_spec.rb
think_feel_do_dashboard-1.1.15 spec/features/researchers/arms_spec.rb
think_feel_do_dashboard-1.1.14 spec/features/researchers/arms_spec.rb
think_feel_do_dashboard-1.1.13 spec/features/researchers/arms_spec.rb
think_feel_do_dashboard-1.1.12 spec/features/researchers/arms_spec.rb
think_feel_do_dashboard-1.1.11 spec/features/researchers/arms_spec.rb
think_feel_do_dashboard-1.1.10 spec/features/researchers/arms_spec.rb