Sha256: 17f9827c018b222c42d1f3b11a21202d4f1ba6552500c3a6e8858d2d43c26dba

Contents?: true

Size: 583 Bytes

Versions: 13

Compression:

Stored size: 583 Bytes

Contents

# frozen_string_literal: true

require 'test_plugin_helper'
# functional tests for SaltModulesController
module ForemanSalt
  class SaltModulesControllerTest < ActionController::TestCase
    setup do
      @model = FactoryBot.create(:salt_module)
    end

    basic_index_test 'salt_modules'
    basic_new_test
    basic_edit_test 'salt_module'

    test 'should destroy module' do
      assert_difference('SaltModule.count', -1) do
        delete :destroy, params: { id: @model.id }, session: set_session_user
      end
      assert_redirected_to salt_modules_url
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
foreman_salt-17.0.1 test/functional/salt_modules_controller_test.rb
foreman_salt-17.0.0 test/functional/salt_modules_controller_test.rb
foreman_salt-16.0.3 test/functional/salt_modules_controller_test.rb
foreman_salt-16.0.2 test/functional/salt_modules_controller_test.rb
foreman_salt-16.0.1 test/functional/salt_modules_controller_test.rb
foreman_salt-16.0.0 test/functional/salt_modules_controller_test.rb
foreman_salt-15.2.3 test/functional/salt_modules_controller_test.rb
foreman_salt-15.2.2 test/functional/salt_modules_controller_test.rb
foreman_salt-15.2.1 test/functional/salt_modules_controller_test.rb
foreman_salt-15.2.0 test/functional/salt_modules_controller_test.rb
foreman_salt-15.1.0 test/functional/salt_modules_controller_test.rb
foreman_salt-15.0.0 test/functional/salt_modules_controller_test.rb
foreman_salt-14.1.0 test/functional/salt_modules_controller_test.rb