Sha256: fafa66f6930f4042aa72a624c2c20096ba2d64d52a4ff980853111bca781e540

Contents?: true

Size: 930 Bytes

Versions: 13

Compression:

Stored size: 930 Bytes

Contents

require "rails_helper"

RSpec.describe "think_feel_do_dashboard/arms/show.html.erb",
               type: :view do
  fixtures :arms

  context "When viewing arm details" do
    before do
      assign :arm, arms(:arm4)
      allow(view).to receive(:can?).and_return(true)
      allow(view).to receive(:edit_arm_path).and_return("#")
      allow(view).to receive(:arm_path).and_return("#")
      allow(view).to receive(:social_features?).and_return(false)

      render
    end

    it "informs the user why they can't access lesson dependent pages" do
      expect(rendered).to match "A learn tool has to be created in order to access this page."
    end

    it "doesn't allow the user to access the lesson module index page" do
      expect(rendered).to have_text "Lesson Modules*"
    end

    it "doesn't allow the user to access the slideshow index page" do
      expect(rendered).to have_text "Slideshows*"
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
think_feel_do_dashboard-1.2.0.beta1 spec/views/think_feel_do_dashboard/arms/show.html.erb_spec.rb
think_feel_do_dashboard-1.1.21 spec/views/think_feel_do_dashboard/arms/show.html.erb_spec.rb
think_feel_do_dashboard-1.1.20 spec/views/think_feel_do_dashboard/arms/show.html.erb_spec.rb
think_feel_do_dashboard-1.1.19 spec/views/think_feel_do_dashboard/arms/show.html.erb_spec.rb
think_feel_do_dashboard-1.1.18 spec/views/think_feel_do_dashboard/arms/show.html.erb_spec.rb
think_feel_do_dashboard-1.1.17 spec/views/think_feel_do_dashboard/arms/show.html.erb_spec.rb
think_feel_do_dashboard-1.1.16 spec/views/think_feel_do_dashboard/arms/show.html.erb_spec.rb
think_feel_do_dashboard-1.1.15 spec/views/think_feel_do_dashboard/arms/show.html.erb_spec.rb
think_feel_do_dashboard-1.1.14 spec/views/think_feel_do_dashboard/arms/show.html.erb_spec.rb
think_feel_do_dashboard-1.1.13 spec/views/think_feel_do_dashboard/arms/show.html.erb_spec.rb
think_feel_do_dashboard-1.1.12 spec/views/think_feel_do_dashboard/arms/show.html.erb_spec.rb
think_feel_do_dashboard-1.1.11 spec/views/think_feel_do_dashboard/arms/show.html.erb_spec.rb
think_feel_do_dashboard-1.1.10 spec/views/think_feel_do_dashboard/arms/show.html.erb_spec.rb