7;s really helped me
convert old tests to the lovely RSpec :)
Best,
Dave
---
David Rice
http://www.davidjrice.co.uk
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
[:size, :content_type].each do |attr_name|
153enum = attachment_options[attr_name]
154errors.add attr_name,
ActiveRecord::Errors.default_error_messages[:inclusion] unless
enum.nil? || enum.include?(send(attr_name))
155 end
15
r using rspec?
Thanks in advance for any experienced advice,
Scott Taylor
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
---
David Rice
http://www.dav
On 23 Aug 2007, at 20:23, Scott Taylor wrote:
On Aug 23, 2007, at 12:18 PM, David Rice wrote:
Scott,
There was a thread about this earlier... You might be interested in
this plugin I wrote. Kinda basic but worked for me.
http://www.davidjrice.co.uk/articles/2007/8/12/ruby-on-rails-plugin