Sha256: e5d14752abf5e91c868cd5bd610fe0e332b62fdd3c51c317581cc2be68ebf723

Contents?: true

Size: 483 Bytes

Versions: 46

Compression:

Stored size: 483 Bytes

Contents

require 'test_helper'

module Shipit
  class OutputChunkTest < ActiveSupport::TestCase
    def setup
      @deploy = shipit_deploys(:shipit)
      @chunks = 3.times.map { OutputChunk.create!(text: 'bla', task: @deploy) }
    end

    test "tail" do
      start = @chunks.first
      rest = @chunks - [start]
      assert_equal rest, @deploy.chunks.tail(start.id)
    end

    test "tail without start" do
      assert_equal @deploy.chunks, @deploy.chunks.tail(nil)
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
shipit-engine-0.31.0 test/models/output_chunk_test.rb
shipit-engine-0.30.0 test/models/output_chunk_test.rb
shipit-engine-0.29.0 test/models/output_chunk_test.rb
shipit-engine-0.28.1 test/models/output_chunk_test.rb
shipit-engine-0.28.0 test/models/output_chunk_test.rb
shipit-engine-0.27.1 test/models/output_chunk_test.rb
shipit-engine-0.27.0 test/models/output_chunk_test.rb
shipit-engine-0.26.0 test/models/output_chunk_test.rb
shipit-engine-0.25.1 test/models/output_chunk_test.rb
shipit-engine-0.25.0 test/models/output_chunk_test.rb
shipit-engine-0.24.0 test/models/output_chunk_test.rb
shipit-engine-0.23.1 test/models/output_chunk_test.rb
shipit-engine-0.23.0 test/models/output_chunk_test.rb
shipit-engine-0.22.0 test/models/output_chunk_test.rb
shipit-engine-0.21.0 test/models/output_chunk_test.rb
shipit-engine-0.20.1 test/models/output_chunk_test.rb
shipit-engine-0.20.0 test/models/output_chunk_test.rb
shipit-engine-0.19.0 test/models/output_chunk_test.rb
shipit-engine-0.18.1 test/models/output_chunk_test.rb
shipit-engine-0.18.0 test/models/output_chunk_test.rb