Sha256: 02d5c066591c8af633cfcbcae4d4b8079580857f91c0e23127eb32477f93cf3a

Contents?: true

Size: 280 Bytes

Versions: 5

Compression:

Stored size: 280 Bytes

Contents

require 'test_helper'

class FactsControllerTest < ActionController::TestCase

  def test_index_json
    get :index, {:format => "json"}, set_session_user
    facts = ActiveSupport::JSON.decode(@response.body)
    assert facts.is_a?(Array)
    assert_response :success
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/test/functional/facts_controller_test.rb
foreman_discovery-1.0.0.rc4 test/foreman_app/test/functional/facts_controller_test.rb
foreman_discovery-1.0.0.rc3 test/foreman_app/test/functional/facts_controller_test.rb
foreman_discovery-1.0.0.rc2 test/foreman_app/test/functional/facts_controller_test.rb
foreman_discovery-1.0.0.rc1 test/foreman_app/test/functional/facts_controller_test.rb