Sha256: 26a961bb3e65f217433cb388fdffcd957d024809e243bd3b0e7cc802de3e60e0

Contents?: true

Size: 211 Bytes

Versions: 6

Compression:

Stored size: 211 Bytes

Contents

require 'mspec/runner/mspec'

class Object
  def shared(msg, &block)
    MSpec.store msg.to_sym, block
  end

  def it_behaves_like(behavior, *args)
    p = MSpec.retrieve behavior.to_sym
    p[*args]
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mspec-1.0.0 lib/mspec/runner/shared.rb
mspec-1.3.0 lib/mspec/runner/shared.rb
mspec-1.1.1 lib/mspec/runner/shared.rb
mspec-1.1.0 lib/mspec/runner/shared.rb
mspec-1.2.0 lib/mspec/runner/shared.rb
mspec-1.3.1 lib/mspec/runner/shared.rb