Testing Rails 3 generators with RSpec
I just wrote an article showing how to test generators with RSpec the same way you can do with test unit. It’s a thin wrapper around Rails::Generators::TestCase and it’s released as a gem called generator_spec.
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
I just wrote an article showing how to test generators with RSpec the same way you can do with test unit. It’s a thin wrapper around Rails::Generators::TestCase and it’s released as a gem called generator_spec.
Post a comment