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/root_spec.rb

21 lines
340 B
Ruby
Raw Normal View History

2018-11-22 15:15:08 -05:00
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe 'GET /' do
2019-03-26 23:04:14 -04:00
def make_request
2018-11-22 15:15:08 -05:00
get '/'
end
2019-03-26 23:04:14 -04:00
before do
sign_in current_account.user if current_account&.user
make_request
end
2019-09-01 07:27:18 -04:00
for_account_types nil, :usual, :superuser do
2019-03-26 23:04:14 -04:00
specify do
expect(response).to have_http_status :ok
end
2018-11-22 15:15:08 -05:00
end
end