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