Sha256: ccbb12920f50fe3a162b294c73100abd910156c3fb6f66d6ac67b02ce9660f27

Contents?: true

Size: 668 Bytes

Versions: 62

Compression:

Stored size: 668 Bytes

Contents

require 'test_helper'

module Workarea
  module Insights
    class UpcomingReleasesTest < TestCase
      def test_results
        one = create_release(publish_at: 1.week.from_now)
        two = create_release(publish_at: 2.weeks.from_now)
        three = create_release(publish_at: nil)

        UpcomingReleases.generate_monthly!
        assert_equal(1, UpcomingReleases.count)

        upcoming_releases = UpcomingReleases.first
        assert_equal(2, upcoming_releases.results.size)
        assert_equal(one.id, upcoming_releases.results.first['release_id'])
        assert_equal(two.id, upcoming_releases.results.second['release_id'])
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-core-3.5.27 test/models/workarea/insights/upcoming_releases_test.rb
workarea-core-3.5.26 test/models/workarea/insights/upcoming_releases_test.rb
workarea-core-3.4.45 test/models/workarea/insights/upcoming_releases_test.rb
workarea-core-3.5.25 test/models/workarea/insights/upcoming_releases_test.rb
workarea-core-3.5.23 test/models/workarea/insights/upcoming_releases_test.rb
workarea-core-3.4.44 test/models/workarea/insights/upcoming_releases_test.rb
workarea-core-3.5.22 test/models/workarea/insights/upcoming_releases_test.rb
workarea-core-3.4.43 test/models/workarea/insights/upcoming_releases_test.rb
workarea-core-3.5.21 test/models/workarea/insights/upcoming_releases_test.rb
workarea-core-3.4.42 test/models/workarea/insights/upcoming_releases_test.rb
workarea-core-3.5.20 test/models/workarea/insights/upcoming_releases_test.rb
workarea-core-3.4.41 test/models/workarea/insights/upcoming_releases_test.rb
workarea-core-3.5.19 test/models/workarea/insights/upcoming_releases_test.rb
workarea-core-3.4.40 test/models/workarea/insights/upcoming_releases_test.rb
workarea-core-3.5.18 test/models/workarea/insights/upcoming_releases_test.rb
workarea-core-3.4.39 test/models/workarea/insights/upcoming_releases_test.rb
workarea-core-3.5.17 test/models/workarea/insights/upcoming_releases_test.rb
workarea-core-3.4.38 test/models/workarea/insights/upcoming_releases_test.rb
workarea-core-3.5.16 test/models/workarea/insights/upcoming_releases_test.rb
workarea-core-3.4.37 test/models/workarea/insights/upcoming_releases_test.rb