Sha256: 51238fa0f55cfedd1d25b01ee5011f472ec94df31e612f0b820836852e2921fc

Contents?: true

Size: 664 Bytes

Versions: 1

Compression:

Stored size: 664 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper.rb'

describe 'Getting Along with MOCHA' do

  behaves_like 'has standard setup'

  %w{current other}.each do |mode|

    behaves_like "has #{mode} process setup"

    it "should work for :stubbing_instance_methods_on_real_objects in #{mode} process" do
      AnyClass.xstub(:something => stub(:to_s => 'hello')) do
        def say_hello ; %\i say #{something}\ ; end
      end
      @get_value['AnyClass.say_hello'].should.equal 'i say hello'
    end

#    it "should work for :traditional_mocking in #{mode} process" do
#    end
#
#    it "should work for :shortcuts in #{mode} process" do
#    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cross-stub-0.1.2 spec/cross-stub/getting_along_with_mocha_spec.rb