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
|
|
|
|
get "/admin", api_key: 'asdiasiduga'
|
|
|
|
end.to raise_error(ActionController::RoutingError)
|
|
|
|
end
|
|
|
|
end
|