Sha256: e859fdb0b67e42cf70b61188681071562a8b17fd1358169cb13eb3455cca70f5

Contents?: true

Size: 302 Bytes

Versions: 5

Compression:

Stored size: 302 Bytes

Contents

require 'test_helper'

class Api::V1::DashboardControllerTest < ActionController::TestCase

  test "should get index with json result" do
    get :index, { }
    assert_response :success
    dashboard = ActiveSupport::JSON.decode(@response.body)
    assert_operator(dashboard.length, :>, 0)
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/test/functional/api/v1/dashboard_controller_test.rb
foreman_discovery-1.0.0.rc4 test/foreman_app/test/functional/api/v1/dashboard_controller_test.rb
foreman_discovery-1.0.0.rc3 test/foreman_app/test/functional/api/v1/dashboard_controller_test.rb
foreman_discovery-1.0.0.rc2 test/foreman_app/test/functional/api/v1/dashboard_controller_test.rb
foreman_discovery-1.0.0.rc1 test/foreman_app/test/functional/api/v1/dashboard_controller_test.rb