asciinema.org/spec/features/user_spec.rb
2013-11-20 21:33:24 +01:00

17 lines
405 B
Ruby

require 'spec_helper'
feature "User's profile" do
let!(:user) { create(:user) }
let!(:asciicast) { create(:asciicast, :user => user, :title => 'Tricks!') }
scenario 'Visiting' do
visit profile_path(user)
expect(page).to have_content(/1 asciicast by #{user.nickname}/i)
expect(page).to have_link('Tricks!')
expect(page).to have_selector('.asciicast-list .play-button')
end
end