Sha256: 31230ea06bc4a5f9403d302a0c664a83b1d3d163b825749822f38e56e6126787
Contents?: true
Size: 862 Bytes
Versions: 1
Compression:
Stored size: 862 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 modules", "New Salt module") end test "create new page" do assert_new_button(salt_modules_path, "New Salt module", 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foreman_salt-0.0.2 | test/integration/salt_module_test.rb |