Sha256: 833fce6b19eee21b68a7bb85353bac9560434c7841144603f07665a4074e3f15
Contents?: true
Size: 595 Bytes
Versions: 10
Compression:
Stored size: 595 Bytes
Contents
require 'test_plugin_helper' module Api module V2 class AnsibleRolesControllerTest < ActionController::TestCase setup do @role = FactoryGirl.create(:ansible_role) end test 'should get index' do get :index, {}, set_session_user response = JSON.parse(@response.body) refute_empty response['results'] assert_response :success end test 'should destroy' do delete :destroy, { :id => @role.id }, set_session_user assert_response :ok refute AnsibleRole.exists?(@role.id) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems