administrator dashboard for observing the Docker container pool
This commit is contained in:
21
spec/controllers/admin/dashboard_controller_spec.rb
Normal file
21
spec/controllers/admin/dashboard_controller_spec.rb
Normal file
@ -0,0 +1,21 @@
|
||||
require 'rails_helper'
|
||||
|
||||
describe Admin::DashboardController do
|
||||
before(:each) { allow(controller).to receive(:current_user).and_return(FactoryGirl.build(:admin)) }
|
||||
|
||||
describe 'GET #show' do
|
||||
describe 'with format HTML' do
|
||||
before(:each) { get :show }
|
||||
|
||||
expect_status(200)
|
||||
expect_template(:show)
|
||||
end
|
||||
|
||||
describe 'with format JSON' do
|
||||
before(:each) { get :show, format: :json }
|
||||
|
||||
expect_json
|
||||
expect_status(200)
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user