search for: davidjrice

Displaying 3 results from an estimated 3 matches for "davidjrice".

2007 Aug 12
1
Test::Unit to RSpec Converter
Hey, just posting in case this is of interest. I just recently wrote a Rails plugin to convert Rails Test::Unit cases to RSpec. http://www.davidjrice.co.uk/articles/2007/8/12/ruby-on-rails-plugin- test-unit-to-rspec-converter it''s not going to work 100% in every case, but it''s really helped me convert old tests to the lovely RSpec :) Best, Dave --- David Rice http://www.davidjrice.co.uk -------------- next part ------...
2007 Aug 18
12
Test::Unit to RSpec
So I''ve just started working on a rails project which currently has something like 7500 LOC. All of the tests are written in Test::Unit, although the test coverage is pretty poor: rcov says that 25% of the code is covered, while rake stats shows the code to test ratio as 1:0.1 (800 lines of test code). I guess I''m wondering what would generally be advisable here. Is it
2007 Aug 18
0
RSpec and acts_as_attachment
...size, :content_type].each do |attr_name| 153 enum = attachment_options[attr_name] 154 errors.add attr_name, ActiveRecord::Errors.default_error_messages[:inclusion] unless enum.nil? || enum.include?(send(attr_name)) 155 end 156 end --- David Rice http://www.davidjrice.co.uk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070818/72cee8c1/attachment.html