You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
439 B
Ruby
17 lines
439 B
Ruby
require 'rails_helper'
|
|
|
|
feature "User's profile" do
|
|
|
|
let!(:user) { create(:user) }
|
|
let!(:asciicast) { create(:asciicast, :user => user, :title => 'Tricks!') }
|
|
|
|
scenario 'Visiting' do
|
|
visit public_profile_path(username: user.username)
|
|
|
|
expect(page).to have_content(/1 public asciicast by #{user.username}/i)
|
|
expect(page).to have_link('Tricks!')
|
|
expect(page).to have_selector('.asciicast-list .play-button')
|
|
end
|
|
|
|
end
|