Forum: RSpec RSpec Rails 3 generators - first draft

Posted by Kristian Mandrup (Guest)
on 2010-02-05 23:16
(Received via mailing list)
I have just finished creating a working set of Rails 3 compatible
generators for RSpec.

http://github.com/kristianmandrup/rspec_rails3_gen

Also available from gemcutter under the same name: rspec_rails3_gen

They work pretty well, except for the hooks functionality which still
needs some work

hook_for :model, :scaffold, ....

I hope to add hook support/integration real soon ;)

At least this is a start.... but perhaps there are already rspec
generators for rails 3 out there?

Kristian
Posted by David Chelimsky (Guest)
on 2010-02-05 23:27
(Received via mailing list)
On Fri, Feb 5, 2010 at 10:38 AM, Kristian Mandrup <kmandrup@gmail.com> 
wrote:
> hook_for :model, :scaffold, ....
>
> I hope to add hook support/integration real soon ;)
>
> At least this is a start.... but perhaps there are already rspec
> generators for rails 3 out there?

There are, in the rspec-rails-2.0.0a series (currently a4). They are
borrowed from a lib José Valim had up on his github account (but it's
not there any longer). They are preliminary at this point, but have a
look and feel free to send patches for anything that's missing:

gem install rspec-rails --pre

http://github.com/rspec/rspec-rails

Cheers,
David
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.