Sha256: 7f9b74a4039b57a70eba91c8a9e2c6cf7af1c26499efce707a3ff1cf3fc34bd9
Contents?: true
Size: 682 Bytes
Versions: 6
Compression:
Stored size: 682 Bytes
Contents
require 'test_statistics_helper' module ForemanStatistics class StatisticsControllerTest < ActionController::TestCase setup do @routes = ForemanStatistics::Engine.routes end test 'user with viewer rights should succeed in viewing statistics' do setup_user('view', 'statistics') get :index, session: set_session_user(:one) assert_response :success end test 'user with viewer rights should succeed in requesting statistics data via ajax' do setup_user('view', 'statistics') get :show, params: { :id => 'operatingsystem', :format => 'json' }, session: set_session_user(:one) assert_response :success end end end
Version data entries
6 entries across 6 versions & 1 rubygems