2014-11-14 11:45:30 -08:00
|
|
|
require 'rails_helper'
|
|
|
|
|
2014-11-17 14:25:28 -08:00
|
|
|
RSpec.describe "user page", :type => :request do
|
2014-11-14 11:45:30 -08:00
|
|
|
before do
|
2014-11-17 14:25:28 -08:00
|
|
|
@user = create(:user)
|
2014-11-14 11:45:30 -08:00
|
|
|
end
|
|
|
|
|
|
|
|
it 'shows the user page' do
|
2014-11-17 14:25:28 -08:00
|
|
|
get "/@#{@user.screen_name}"
|
|
|
|
assert_select "h3.text-muted", :text => @user.screen_name
|
2014-11-14 11:45:30 -08:00
|
|
|
end
|
|
|
|
end
|