Sha256: d1fd70a3f912b597c892c8879b0e428473ab4b1b8d49a32caa57bd9873fc4c67

Contents?: true

Size: 215 Bytes

Versions: 61

Compression:

Stored size: 215 Bytes

Contents

require 'mspec/runner/mspec'

class Object
  def it_behaves_like(desc, meth, obj=nil)
    send :before, :all do
      @method = meth
      @object = obj
    end

    send :it_should_behave_like, desc.to_s
  end
end

Version data entries

61 entries across 61 versions & 3 rubygems

Version Path
mspec-1.7.0 lib/mspec/runner/shared.rb
mspec-1.6.0 lib/mspec/runner/shared.rb
mspec-1.5.21 lib/mspec/runner/shared.rb
mspec-1.5.20 lib/mspec/runner/shared.rb
mspec-1.5.19 lib/mspec/runner/shared.rb
mspec-1.5.18 lib/mspec/runner/shared.rb
rhodes-3.5.1.12 lib/extensions/mspec/mspec/runner/shared.rb
rhodes-3.3.5 lib/extensions/mspec/mspec/runner/shared.rb
rhodes-3.4.2 lib/extensions/mspec/mspec/runner/shared.rb
rhodes-3.3.4 lib/extensions/mspec/mspec/runner/shared.rb
rhodes-3.3.3 lib/extensions/mspec/mspec/runner/shared.rb
rhodes-3.3.3.beta.4 lib/extensions/mspec/mspec/runner/shared.rb
rhodes-3.3.3.beta.3 lib/extensions/mspec/mspec/runner/shared.rb
rhodes-3.3.3.beta.2 lib/extensions/mspec/mspec/runner/shared.rb
rhodes-3.3.3.beta.1 lib/extensions/mspec/mspec/runner/shared.rb
rhodes-3.3.2 lib/extensions/mspec/mspec/runner/shared.rb
rhodes-3.3.2.beta.7 lib/extensions/mspec/mspec/runner/shared.rb
rhodes-3.3.2.beta.6 lib/extensions/mspec/mspec/runner/shared.rb
rhodes-3.3.2.beta.5 lib/extensions/mspec/mspec/runner/shared.rb
rhodes-3.3.2.beta.4 lib/extensions/mspec/mspec/runner/shared.rb