Sha256: 82c976b44b5eba0695445b8601cf111f77a7b663746ceea86737e6c78cc40d6e

Contents?: true

Size: 611 Bytes

Versions: 44

Compression:

Stored size: 611 Bytes

Contents

require 'foreman_tasks_test_helper'

module Queries
  class RecurringLogicsTest < GraphQLQueryTestCase
    let(:query) do
      <<-GRAPHQL
      query {
        recurringLogics {
          nodes {
            id
            cronLine
          }
        }
      }
      GRAPHQL
    end

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

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

    test "should fetch recurring logics" do
      assert_empty result['errors']
      expected_count = ::ForemanTasks::RecurringLogic.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/recurring_logics_query_test.rb
foreman-tasks-10.0.1 test/graphql/queries/recurring_logics_query_test.rb
foreman-tasks-10.0.0 test/graphql/queries/recurring_logics_query_test.rb
foreman-tasks-9.2.3 test/graphql/queries/recurring_logics_query_test.rb
foreman-tasks-9.2.2 test/graphql/queries/recurring_logics_query_test.rb
foreman-tasks-9.2.1 test/graphql/queries/recurring_logics_query_test.rb
foreman-tasks-9.2.0 test/graphql/queries/recurring_logics_query_test.rb
foreman-tasks-9.1.1 test/graphql/queries/recurring_logics_query_test.rb
foreman-tasks-9.0.4 test/graphql/queries/recurring_logics_query_test.rb
foreman-tasks-9.1.0 test/graphql/queries/recurring_logics_query_test.rb
foreman-tasks-9.0.2 test/graphql/queries/recurring_logics_query_test.rb
foreman-tasks-9.0.1 test/graphql/queries/recurring_logics_query_test.rb
foreman-tasks-8.3.3 test/graphql/queries/recurring_logics_query_test.rb
foreman-tasks-9.0.0 test/graphql/queries/recurring_logics_query_test.rb
foreman-tasks-8.2.1 test/graphql/queries/recurring_logics_query_test.rb
foreman-tasks-8.1.4 test/graphql/queries/recurring_logics_query_test.rb
foreman-tasks-8.3.2 test/graphql/queries/recurring_logics_query_test.rb
foreman-tasks-8.3.1 test/graphql/queries/recurring_logics_query_test.rb
foreman-tasks-8.1.3 test/graphql/queries/recurring_logics_query_test.rb
foreman-tasks-8.3.0 test/graphql/queries/recurring_logics_query_test.rb