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.17.0 test/models/output_chunk_test.rb
shipit-engine-0.16.0 test/models/output_chunk_test.rb
shipit-engine-0.15.0 test/models/output_chunk_test.rb
shipit-engine-0.14.0 test/models/output_chunk_test.rb
shipit-engine-0.13.0 test/models/output_chunk_test.rb
shipit-engine-0.12.1 test/models/output_chunk_test.rb
shipit-engine-0.12.0 test/models/output_chunk_test.rb
shipit-engine-0.11.0 test/models/output_chunk_test.rb
shipit-engine-0.10.0 test/models/output_chunk_test.rb
shipit-engine-0.9.0 test/models/output_chunk_test.rb
shipit-engine-0.8.9 test/models/output_chunk_test.rb
shipit-engine-0.8.8 test/models/output_chunk_test.rb
shipit-engine-0.8.7 test/models/output_chunk_test.rb
shipit-engine-0.8.6 test/models/output_chunk_test.rb
shipit-engine-0.8.5 test/models/output_chunk_test.rb
shipit-engine-0.8.4 test/models/output_chunk_test.rb
shipit-engine-0.8.3 test/models/output_chunk_test.rb
shipit-engine-0.8.2 test/models/output_chunk_test.rb
shipit-engine-0.8.1 test/models/output_chunk_test.rb
shipit-engine-0.8.0 test/models/output_chunk_test.rb