Sha256: a803846bce7e901f41081cf650784626f7ac0a61f0e65639c19768fd41747dd3
Contents?: true
Size: 717 Bytes
Versions: 5
Compression:
Stored size: 717 Bytes
Contents
# frozen_string_literal: true 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
5 entries across 5 versions & 1 rubygems