Sha256: a3cebb0680628fa4ae02ecc6b3c9832df1f9a8ca85372342e095589858edf995

Contents?: true

Size: 342 Bytes

Versions: 6

Compression:

Stored size: 342 Bytes

Contents

# frozen_string_literal: true

module Assert; end

class Assert::Context
  module SuiteDSL
    def suite(suite_obj = nil)
      if suite_obj
        @suite = suite_obj
      else
        @suite ||
        if superclass.respond_to?(:suite)
          superclass.suite
        else
          Assert.suite
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
assert-2.19.8 lib/assert/context/suite_dsl.rb
assert-2.19.7 lib/assert/context/suite_dsl.rb
assert-2.19.6 lib/assert/context/suite_dsl.rb
assert-2.19.5 lib/assert/context/suite_dsl.rb
assert-2.19.4 lib/assert/context/suite_dsl.rb
assert-2.19.3 lib/assert/context/suite_dsl.rb