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