Sha256: 0c93920f93fd32e76fc6697967d8402211e11c658d18d42c90afaeb806e45ac4

Contents?: true

Size: 493 Bytes

Versions: 190

Compression:

Stored size: 493 Bytes

Contents

require 'mspec/runner/formatters/dotted'

class FileFormatter < DottedFormatter
  # Unregisters DottedFormatter#before, #after methods and
  # registers #load, #unload, which perform the same duties
  # as #before, #after in DottedFormatter.
  def register
    super

    MSpec.unregister :before,    self
    MSpec.unregister :after,     self

    MSpec.register   :load,      self
    MSpec.register   :unload,    self
  end

  alias_method :load, :before
  alias_method :unload, :after
end

Version data entries

190 entries across 166 versions & 4 rubygems

Version Path
rhodes-7.6.0 lib/extensions/mspec/mspec/runner/formatters/file.rb
rhodes-7.5.1 lib/extensions/mspec/mspec/runner/formatters/file.rb
rhodes-7.4.1 lib/extensions/mspec/mspec/runner/formatters/file.rb
rhodes-7.1.17 lib/extensions/mspec/mspec/runner/formatters/file.rb
rhodes-6.2.0 lib/extensions/mspec/mspec/runner/formatters/file.rb
rhodes-6.0.11 lib/extensions/mspec/mspec/runner/formatters/file.rb
rhodes-5.5.18 lib/extensions/mspec/mspec/runner/formatters/file.rb
rhodes-5.5.17 lib/extensions/mspec/mspec/runner/formatters/file.rb
rhodes-5.5.15 lib/extensions/mspec/mspec/runner/formatters/file.rb
rhodes-5.5.0.22 lib/extensions/mspec/mspec/runner/formatters/file.rb
rhodes-5.5.2 lib/extensions/mspec/mspec/runner/formatters/file.rb
rhodes-5.5.0.7 lib/extensions/mspec/mspec/runner/formatters/file.rb
rhodes-5.5.0.3 lib/extensions/mspec/mspec/runner/formatters/file.rb
rhodes-5.5.0 lib/extensions/mspec/mspec/runner/formatters/file.rb
tauplatform-1.0.3 lib/extensions/mspec/mspec/runner/formatters/file.rb
mspec-1.9.1 lib/mspec/runner/formatters/file.rb
mspec-1.9.0 lib/mspec/runner/formatters/file.rb
tauplatform-1.0.2 lib/extensions/mspec/mspec/runner/formatters/file.rb
tauplatform-1.0.1 lib/extensions/mspec/mspec/runner/formatters/file.rb
mspec-1.8.0 lib/mspec/runner/formatters/file.rb