Factlink / pavlov

Provides a Command/Query/Interactor framework.
MIT License
22 stars 4 forks source link

Add support for Rails generators #19

Closed marten closed 11 years ago

marten commented 11 years ago

If anyone knows how to add tests for this, I'd love to add them. This stuff seems a bit under-documented in Rails, so there were no examples of how to add tests.

I could write something that actually executes rails generate pavlov:query etc, but that seems incredibly slow...

In addition, I'd also love it if these generated the corresponding spec files, but rspec-rails doesn't provide generators for generic classes, only models, views etc. Might be an idea to add support for that to rspec-rails, so we can use it here. Ofcourse, then we'd also have to investigate how that works with Test::Unit and Minitest.

jjoos commented 11 years ago

I will investigate adding tests, before merging this back.

coveralls commented 11 years ago

Coverage Status

Coverage remained the same when pulling 80a02110c3e01fb55834e8a9f6cf934befee1e8a on roqua:feature/add-rails-generators into 459b2b507a057e817510f3b9aa0c1a1e7adc431a on Factlink:develop.

jjoos commented 11 years ago

@marten Could you rebase this pull request against master?