-
2007-04-17
"The current incarnation of autotest seems to assume that you are using integrated views. If not, you can modify the rspec_rails_autotest.rb file to run the view specs as well:
:::ruby # when %r%^app/views/layouts/(.*)\.rhtml% then # ["spec/views/layouts/#{$1}_spec.rb"] when %r%^app/views/(.*)\.rhtml$% then ["spec/views/#{$1}_view_spec.rb"] Your view spec must be postfixed with “_view_spec.rb” for it to work
Update This works out of the box now."
-
2007-04-13
"Autotest 3.5.0 is out, and the result given from Autotest is no longer a String, it’s an array of strings. So if you still want Growl to function properly just modify the .autotest slightly:
#ruby module Autotest::Growl def self.growl title, msg, img, pri=0, stick="" system "growlnotify -n autotest --image #{img} -p #{pri} -m #{msg.inspect} #{title} #{stick}" end Autotest.add_hook :ran_command do |at| output = at.results.last.slice(/(\d+)\s.*specifications?,\s(\d+)\s.*failures?/) if output =~ /[1-9]\sfailures?/ growl "Test Results", "#{output}", '~/Library/autotest/rails_fail."
-
2007-03-30
"I am getting all parts of my Rails development environment settled. In addition to vanilla Rails, I am currently using RSpec, Selenium and Autotest. I am seriously considering Haml and Sass as well.
When googling arounf to learn more about Autotest, I realized that people are using together with Growl. It works out-of-the-box with Test::Unit, but RSpec needs a little tweaking. I took the basics from here and modified to my liking."
-
2007-01-30
"For some reason, there has been very little fuss over the fact that TextMate now offers code completion for Ruby using the rcodetools gem. It is all still in svn, so you have to check it out manually.
Log for r6455 [NEW] The Ruby bundle now includes an rcodetools-backed completion command on option-escape. This command is capable of very accurate completion for any accessible Ruby objects and methods, without needing to see you type it first (as TextMate’s default completion requires)."
-
2006-08-09
"I always knew one day Smalltalk would replace Java. I just didn’t know it would be called Ruby.
– Kent Beck
Blaine Buxton links to this quote at ozmmdotorg."
(Via Mike Bowler’s thoughts.)"
-
2006-05-09
"I will be speaking on the Rails Recipes Meetup here in Stockholm tomorrow. My topic will be on recipe 28 in Chads excellent book, how you can use with_scope to DRY your code.
Whilst I have looked quite deeply into the subject - it is quite small actually - there is one thing I have yet to find out. Chad mentions that you can use wrap your actions with scoping using a before_filter."
-
2005-10-17
"Lots of people have had problems with Ruby and MySQL. The ever so pragmatic Rails book links to a popular solution which involves installing the MySQL gem and specifying the path to the MySQL. This did not do the trick for me, and I’ve failed trying different alternatives after that. Today I came across PJ Hyett’s idea of installing Ruby-MySQL from source. It worked like a charm."