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
|
2018-01-11 22:15:10 -05:00
|
|
|
get "/admin", params: { api_key: 'asdiasiduga' }
|
|
|
|
expect(response.status).to eq(404)
|
2018-01-31 20:26:45 -05:00
|
|
|
|
|
|
|
get "/admin"
|
|
|
|
expect(response.status).to eq(404)
|
2017-08-10 05:27:01 -04:00
|
|
|
end
|
|
|
|
end
|