Sha256: cbb201f639716a63a9b63e77ada1e99839b0badf611c2688308402e2b16665f6
Contents?: true
Size: 855 Bytes
Versions: 4
Compression:
Stored size: 855 Bytes
Contents
require 'test_plugin_helper' module ForemanSalt class SaltModuleTest < ActionDispatch::IntegrationTest test 'index page' do FactoryGirl.create_list :salt_module, 50 assert_index_page(salt_modules_path, 'Salt State', 'New Salt State') end test 'create new page' do assert_new_button(salt_modules_path, 'New Salt State', new_salt_module_path) fill_in 'foreman_salt_salt_module_name', :with => 'common' assert_submit_button(salt_modules_path) assert page.has_link? 'common' end test 'edit page' do salt_module = FactoryGirl.create :salt_module visit salt_modules_path click_link salt_module.name fill_in :foreman_salt_salt_module_name, :with => 'some_other_name' assert_submit_button(salt_modules_path) assert page.has_link? 'some_other_name' end end end
Version data entries
4 entries across 4 versions & 1 rubygems