Report abuse


			
  def purchase
    send_shipping_notice
  end
  
  def send_shipping_notice
    puts "hi"
  end


# In my spec
  def given_bought_on(date)
    wp = @restaurant.web_page
    puts wp.inspect
    wp.should_receive(:send_shipping_notice)
    wp.purchase
  end

# Outputs:
#
receipt: #
hi


1)
Spec::Mocks::MockExpectationError in 'WebPage should complete a purchase from google activating the web page'
Mock 'WebPage' expected :send_shipping_notice with (any args) once, but received it 0 times
./spec/models/web_page_spec.rb:21:in `given_bought_on'
script/spec:4: