mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 22:42:13 +08:00
10 lines
264 B
Ruby
10 lines
264 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", params: { api_key: 'asdiasiduga' }
|
|
end.to raise_error(ActionController::RoutingError)
|
|
end
|
|
end
|