Sha256: 1a06b41dbadc79b8052844fcc544848ab108a40cb7035a394f49e29698163df6

Contents?: true

Size: 663 Bytes

Versions: 11

Compression:

Stored size: 663 Bytes

Contents

require "spec_helper"

module SocialNetworking
  RSpec.describe "social_networking/goals/tool.html.erb",
                 type: :view do
    describe "Viewing ACHIEVE tool" do
      before do
        allow(view)
          .to receive(:current_participant)
          .and_return(
            instance_double(
              Participant,
              id: 1,
              active_membership_end_date: Date.new))
        allow(view)
          .to receive(:goals)
      end

      it "gives detailed description of how to use the goal" do
        render

        expect(rendered)
          .to match "The ACHIEVE tool helps you set goals."
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
social_networking-0.11.8 spec/views/social_networking/goals/tool.html.erb_spec.rb
social_networking-0.11.7 spec/views/social_networking/goals/tool.html.erb_spec.rb
social_networking-0.11.6 spec/views/social_networking/goals/tool.html.erb_spec.rb
social_networking-0.11.5 spec/views/social_networking/goals/tool.html.erb_spec.rb
social_networking-0.11.4 spec/views/social_networking/goals/tool.html.erb_spec.rb
social_networking-0.11.3 spec/views/social_networking/goals/tool.html.erb_spec.rb
social_networking-0.11.2 spec/views/social_networking/goals/tool.html.erb_spec.rb
social_networking-0.11.1 spec/views/social_networking/goals/tool.html.erb_spec.rb
social_networking-0.11.0 spec/views/social_networking/goals/tool.html.erb_spec.rb
social_networking-0.10.0 spec/views/social_networking/goals/tool.html.erb_spec.rb
social_networking-0.9.3 spec/views/social_networking/goals/tool.html.erb_spec.rb