search for: can_send_messag

Displaying 1 result from an estimated 1 matches for "can_send_messag".

Did you mean: can_send_message
2011 Jun 23
2
RSpec book help; why won't this stub method work?
Subscription model-------------------------------------------- class Subscription < ActiveRecord::Base has_one :user def can_send_message? if user.sent_messages.count < limit true else false end end end Subscription model spec-------------------------------------------- require ''spec_helper'' describe Subscription do describe "#can_send_message?" do before(:each) do...