2017-08-10 05:27:01 -04:00
|
|
|
require 'rails_helper'
|
|
|
|
|
2017-08-23 23:01:11 -04:00
|
|
|
RSpec.describe Admin::AdminController do
|
2017-08-10 05:27:01 -04:00
|
|
|
it "should return the right response if user isn't a staff" do
|
|
|
|
expect do
|
2017-08-31 00:06:56 -04:00
|
|
|
get "/admin", params: { api_key: 'asdiasiduga' }
|
2017-08-10 05:27:01 -04:00
|
|
|
end.to raise_error(ActionController::RoutingError)
|
|
|
|
end
|
|
|
|
end
|