Sha256: d6d6ee4197fdc338c0ea229c081eca74bf6fbe89a0c879229c5a7f6195f912e0

Contents?: true

Size: 833 Bytes

Versions: 13

Compression:

Stored size: 833 Bytes

Contents

require "rails_helper"

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

  context "when creating or editing an arm" do
    let(:arm) { arms(:arm1) }

    before do
      assign :arm, arm
      allow(view).to receive(:arm_path).and_return("#")
      allow(view).to receive(:social_features?).and_return(true)
      allow(view).to receive(:button_text)
      allow(view).to receive(:cancel_path).and_return("#")

      render
    end

    it "displays the messaging field label" do
      expect(rendered)
        .to match(/Completed membership messaging/)
    end

    it "displays the messaging field help text" do
      expect(rendered)
        .to match(/This will allow participants to compose and send messages after their membership is complete./)
    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/_form.html.erb_spec.rb
think_feel_do_dashboard-1.1.21 spec/views/think_feel_do_dashboard/arms/_form.html.erb_spec.rb
think_feel_do_dashboard-1.1.20 spec/views/think_feel_do_dashboard/arms/_form.html.erb_spec.rb
think_feel_do_dashboard-1.1.19 spec/views/think_feel_do_dashboard/arms/_form.html.erb_spec.rb
think_feel_do_dashboard-1.1.18 spec/views/think_feel_do_dashboard/arms/_form.html.erb_spec.rb
think_feel_do_dashboard-1.1.17 spec/views/think_feel_do_dashboard/arms/_form.html.erb_spec.rb
think_feel_do_dashboard-1.1.16 spec/views/think_feel_do_dashboard/arms/_form.html.erb_spec.rb
think_feel_do_dashboard-1.1.15 spec/views/think_feel_do_dashboard/arms/_form.html.erb_spec.rb
think_feel_do_dashboard-1.1.14 spec/views/think_feel_do_dashboard/arms/_form.html.erb_spec.rb
think_feel_do_dashboard-1.1.13 spec/views/think_feel_do_dashboard/arms/_form.html.erb_spec.rb
think_feel_do_dashboard-1.1.12 spec/views/think_feel_do_dashboard/arms/_form.html.erb_spec.rb
think_feel_do_dashboard-1.1.11 spec/views/think_feel_do_dashboard/arms/_form.html.erb_spec.rb
think_feel_do_dashboard-1.1.10 spec/views/think_feel_do_dashboard/arms/_form.html.erb_spec.rb