Migrate AdminController to spec

This commit is contained in:
Robert Richter 2016-10-01 11:30:34 -05:00
parent e99ea9e596
commit 040ff57723
No known key found for this signature in database
GPG Key ID: BEC39BF873A0103B
2 changed files with 29 additions and 29 deletions

View 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

View File

@ -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