Sha256: beb8f11d65f3593af11cb8601b63fb73cb494b459fee101408ab43c038f98e5c
Contents?: true
Size: 611 Bytes
Versions: 8
Compression:
Stored size: 611 Bytes
Contents
require 'test_plugin_helper' class DiscoveredHostsControllerTest < ActionController::TestCase setup :initialize_host def test_index get :index, {}, set_session_user assert_response :success end def test_index_json get :index, {:format => "json"}, set_session_user domain = ActiveSupport::JSON.decode(@response.body) assert_response :success end def test_add_entry_to_nav_menu get :index, {}, set_session_user assert_tag :tag => 'a', :attributes => {:href => '/discovered_hosts'} end private def initialize_host User.current = users(:admin) end end
Version data entries
8 entries across 8 versions & 1 rubygems