1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/spec/requests/accounts/show_spec.rb

19 lines
412 B
Ruby
Raw Normal View History

2019-02-01 16:36:10 -05:00
# frozen_string_literal: true
require 'rails_helper'
2019-03-24 15:27:06 -04:00
RSpec.describe 'GET /accounts/:nickname' do
2019-02-01 16:36:10 -05:00
let!(:account_record) { create :personal_account }
before do
sign_in current_account.user if current_account&.user
2019-03-24 15:27:06 -04:00
get "/accounts/#{account_record.nickname}"
2019-02-01 16:36:10 -05:00
end
for_account_types nil, :guest, :usual, :superuser do
specify do
expect(response).to have_http_status :ok
end
end
end