search for: thinkrelev

Displaying 4 results from an estimated 4 matches for "thinkrelev".

2008 Mar 31
0
log_buddy released - your helpful dev and debug buddy
...y var''" d { @@bar } # logs "@@bar = ''class var!''" d { bark } # logs "bark = woof!" d { Foo::module_method } # logs Foo::module_method = ''hi!!'' More ==== Log bugs/issues/suggestions here: http://opensource.thinkrelevance.com/wiki/log_buddy Source: http://github.com/relevance/log_buddy/tree/master git clone git://github.com/relevance/log_buddy.git rdocs: http://thinkrelevance.rubyforge.org/log_buddy/ Thanks ====== Thanks to Dave Thomas and his latest testing code for the idea of simple reading the file based on...
2008 May 28
3
Mocking objects to test Rails Controllers
Hi all, I''m currently considering the use of Mocha to aid in writing my Rails unit/functional tests. I currently have a Rails model which mixes in a series of methods to allow it to talk to an external service. The code is roughly of this form: class Person < ActiveRecord::Base include SMSNotifier def send_notification(message) send_sms(number,message) #
2008 Apr 04
0
[ANN} log_buddy 0.0.2 released
...test. When you call the "d" method with an inline block, it will log the name of the things in the block and the result. Examples: Changes: ### 0.0.2 * rdocs * support for multiple statements in one "d" call separated by semicolons thanks, Rob http://robsanheim.com http://thinkrelevance.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this grou...
2009 Feb 02
12
[RSpec] rcov and/or rexml bug?
Hi, Running: Ruby 1.8.7 p72, RSpec 1.1.12 and rcov 0.8.1.2.0, I get the following error message with $ rake spec:rcov -- /usr/local/ruby1.8.7//lib/ruby/1.8/rexml/formatters/pretty.rb:131:in `[]'': no implicit conversion from nil to integer (TypeError) from /usr/local/ruby1.8.7//lib/ruby/1.8/rexml/formatters/pretty.rb:131:in `wrap'' from