Sha256: 958ed810711039055daf266e209453a547509e041625f2f3bb64b38a3d91833c

Contents?: true

Size: 286 Bytes

Versions: 137

Compression:

Stored size: 286 Bytes

Contents

require 'mspec/runner/actions/filter'

class DebugAction < ActionFilter
  def before(state)
    Kernel.debugger if self === state.description
  end

  def register
    super
    MSpec.register :before, self
  end

  def unregister
    super
    MSpec.unregister :before, self
  end
end

Version data entries

137 entries across 113 versions & 3 rubygems

Version Path
rhodes-3.1.1 lib/extensions/mspec/mspec/runner/actions/debug.rb
rhodes-3.1.1.beta lib/extensions/mspec/mspec/runner/actions/debug.rb
rhodes-3.1.0 lib/extensions/mspec/mspec/runner/actions/debug.rb
rhodes-3.1.0.beta.5 lib/extensions/mspec/mspec/runner/actions/debug.rb
rhodes-3.1.0.beta.4 lib/extensions/mspec/mspec/runner/actions/debug.rb
rhodes-3.1.0.beta.3 lib/extensions/mspec/mspec/runner/actions/debug.rb
rhodes-3.1.0.beta.2 lib/extensions/mspec/mspec/runner/actions/debug.rb
rhodes-3.1.0.beta.1 lib/extensions/mspec/mspec/runner/actions/debug.rb
rhodes-3.0.2 lib/extensions/mspec/mspec/runner/actions/debug.rb
rhodes-3.0.2.beta.1 lib/extensions/mspec/mspec/runner/actions/debug.rb
rhodes-3.0.1 lib/extensions/mspec/mspec/runner/actions/debug.rb
rhodes-3.0.1.beta.8 lib/extensions/mspec/mspec/runner/actions/debug.rb
rhodes-3.0.1.beta.7 lib/extensions/mspec/mspec/runner/actions/debug.rb
rhodes-3.0.1.beta.6 lib/extensions/mspec/mspec/runner/actions/debug.rb
rhodes-3.0.1.beta.5 lib/extensions/mspec/mspec/runner/actions/debug.rb
rhodes-3.0.1.beta.4 lib/extensions/mspec/mspec/runner/actions/debug.rb
rhodes-3.0.1.beta.3 lib/extensions/mspec/mspec/runner/actions/debug.rb
rhodes-3.0.1.beta.2 lib/extensions/mspec/mspec/runner/actions/debug.rb
rhodes-3.0.0 lib/extensions/mspec/mspec/runner/actions/debug.rb
rhodes-3.0.0.beta.7 lib/extensions/mspec/mspec/runner/actions/debug.rb