Sha256: 21b837e7d25046de2a40e924e4d104bb05c4bc593de98957b952be895f70eb30
Contents?: true
Size: 939 Bytes
Versions: 11
Compression:
Stored size: 939 Bytes
Contents
require 'test_plugin_helper' module ForemanSalt class SaltEnvironmentTest < ActionDispatch::IntegrationTest test 'index page' do FactoryGirl.create_list :salt_environment, 50 assert_index_page(salt_environments_path, 'Salt Environment', 'New Salt Environment') end test 'create new page' do assert_new_button(salt_environments_path, 'New Salt Environment', new_salt_environment_path) fill_in 'foreman_salt_salt_environment_name', :with => 'common' assert_submit_button(salt_environments_path) assert page.has_link? 'common' end test 'edit page' do salt_environment = FactoryGirl.create :salt_environment visit salt_environments_path click_link salt_environment.name fill_in 'foreman_salt_salt_environment_name', :with => 'some_other_name' assert_submit_button(salt_environments_path) assert page.has_link? 'some_other_name' end end end
Version data entries
11 entries across 11 versions & 1 rubygems