Sha256: 95d5812b8d24cc726fcb378102749e0f06765b142b44e1d271f110b66861416a

Contents?: true

Size: 506 Bytes

Versions: 1

Compression:

Stored size: 506 Bytes

Contents

require 'pork/test'

describe Pork::Isolator do
  before do
    @suite = Class.new(Pork::Suite){init}
  end

  describe '.all_tests' do
    would 'have the correct source order' do
      @suite.copy :append do
        would{}
      end

      @suite.describe do
        describe do
          would{}
        end

        paste :append
      end

      Pork::Isolator[@suite].
        all_tests[:files].values.map(&:keys).each do |lines|
          expect(lines).eq lines.sort
        end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pork-2.1.0 test/test_isolator.rb