Sha256: ed140ff6c15eb360691a5b64544572e71e7cf360a1fc395bcf0582d5aab0a0f3

Contents?: true

Size: 587 Bytes

Versions: 44

Compression:

Stored size: 587 Bytes

Contents

require 'foreman_tasks_test_helper'

module Queries
  class TasksQueryTest < GraphQLQueryTestCase
    let(:query) do
      <<-GRAPHQL
      query {
        tasks {
          nodes {
            id
            action
            result
          }
        }
      }
      GRAPHQL
    end

    let(:data) { result['data']['tasks'] }

    setup do
      FactoryBot.create_list(:some_task, 2)
    end

    test "should fetch recurring logics" do
      assert_empty result['errors']
      expected_count = ::ForemanTasks::Task.count
      assert_not_equal 0, expected_count
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
foreman-tasks-10.0.2 test/graphql/queries/tasks_query_test.rb
foreman-tasks-10.0.1 test/graphql/queries/tasks_query_test.rb
foreman-tasks-10.0.0 test/graphql/queries/tasks_query_test.rb
foreman-tasks-9.2.3 test/graphql/queries/tasks_query_test.rb
foreman-tasks-9.2.2 test/graphql/queries/tasks_query_test.rb
foreman-tasks-9.2.1 test/graphql/queries/tasks_query_test.rb
foreman-tasks-9.2.0 test/graphql/queries/tasks_query_test.rb
foreman-tasks-9.1.1 test/graphql/queries/tasks_query_test.rb
foreman-tasks-9.0.4 test/graphql/queries/tasks_query_test.rb
foreman-tasks-9.1.0 test/graphql/queries/tasks_query_test.rb
foreman-tasks-9.0.2 test/graphql/queries/tasks_query_test.rb
foreman-tasks-9.0.1 test/graphql/queries/tasks_query_test.rb
foreman-tasks-8.3.3 test/graphql/queries/tasks_query_test.rb
foreman-tasks-9.0.0 test/graphql/queries/tasks_query_test.rb
foreman-tasks-8.2.1 test/graphql/queries/tasks_query_test.rb
foreman-tasks-8.1.4 test/graphql/queries/tasks_query_test.rb
foreman-tasks-8.3.2 test/graphql/queries/tasks_query_test.rb
foreman-tasks-8.3.1 test/graphql/queries/tasks_query_test.rb
foreman-tasks-8.1.3 test/graphql/queries/tasks_query_test.rb
foreman-tasks-8.3.0 test/graphql/queries/tasks_query_test.rb