summaryrefslogtreecommitdiff
path: root/spec/features/programs_spec.rb
blob: 143a29bf3b88c285136579a44cdbe778f658b48d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require "rails_helper"

feature "Programs", type: :feature do
  include_context "stronglifts_program"
  subject { ProgramPage.new(program) }
  let(:user) { create(:user, password: "password") }

  before :each do
    subject.login_with(user.username, "password")
    subject.visit_page
  end

  describe "view program" do
    it "displays the details of the program" do
      expect(page).to have_content(program.name)
    end
  end
end