This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/spec/requests/admin/admin_controller_spec.rb
2017-08-24 12:01:11 +09:00

10 lines
252 B
Ruby

require 'rails_helper'
RSpec.describe Admin::AdminController do
it "should return the right response if user isn't a staff" do
expect do
get "/admin", api_key: 'asdiasiduga'
end.to raise_error(ActionController::RoutingError)
end
end