blob: 68664330263b9b13e3d0cb27fb482e5066f96638 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
require "rails_helper"
feature "Sessions", type: :feature do
subject { LoginPage.new }
let(:user) { create(:user, password: "password") }
context "credentials are correct" do
it "takes you to your dashboard" do
subject.visit_page
subject.login_with(user.username, "password")
expect(current_path).to eql(dashboard_path)
end
end
end
|