今王必欲致士 先従隗始 - little debugging principles - Presentation Transcript
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
2009 4 23
describe MailingList, '#create_message_for' do
fixtures :mailing_lists
before do
@email = stub(:email)
@message = stub(:message)
end
# ...
it \"returns nil if the resolver can't resolve the email as a
message for the list\" do
@resolver.stub!(:resolve).and_return(nil)
@ml.create_message_for(@email).should be_nil
end
end
2009 4 23
0 comments
Post a comment