mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
Migrate AdminController to spec
This commit is contained in:
parent
e99ea9e596
commit
040ff57723
29
spec/controllers/admin_controller_spec.rb
Normal file
29
spec/controllers/admin_controller_spec.rb
Normal file
@ -0,0 +1,29 @@
|
||||
require 'rails_helper'
|
||||
require 'support/devise'
|
||||
|
||||
RSpec.describe AdminController, :type => :controller do
|
||||
describe 'GET #dashboard' do
|
||||
before { get :dashboard }
|
||||
it { is_expected.to respond_with(200) }
|
||||
end
|
||||
|
||||
describe 'GET #universes' do
|
||||
before { get :universes }
|
||||
it { is_expected.to respond_with(200) }
|
||||
end
|
||||
|
||||
describe 'GET #characters' do
|
||||
before { get :characters }
|
||||
it { is_expected.to respond_with(200) }
|
||||
end
|
||||
|
||||
describe 'GET #locations' do
|
||||
before { get :locations }
|
||||
it { is_expected.to respond_with(200) }
|
||||
end
|
||||
|
||||
describe 'GET #items' do
|
||||
before { get :items }
|
||||
it { is_expected.to respond_with(200) }
|
||||
end
|
||||
end
|
||||
@ -1,29 +0,0 @@
|
||||
require 'test_helper'
|
||||
|
||||
class AdminControllerTest < ActionController::TestCase
|
||||
test "should get dashboard" do
|
||||
get :dashboard
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get universes" do
|
||||
get :universes
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get characters" do
|
||||
get :characters
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get locations" do
|
||||
get :locations
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get items" do
|
||||
get :items
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
end
|
||||
Loading…
Reference in New Issue
Block a user