Sha256: 0692536ecd610eeba1bea2f786f33779e9a88b3a1081a89269a382e8221e3bfd

Contents?: true

Size: 302 Bytes

Versions: 6

Compression:

Stored size: 302 Bytes

Contents

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.0 lib/assert/context/suite_dsl.rb
assert-2.18.4 lib/assert/context/suite_dsl.rb
assert-2.18.3 lib/assert/context/suite_dsl.rb
assert-2.18.2 lib/assert/context/suite_dsl.rb
assert-2.18.1 lib/assert/context/suite_dsl.rb
assert-2.18.0 lib/assert/context/suite_dsl.rb