cavalle / steak

DISCONTINUED - The delicious combination of RSpec and Capybara for Acceptance BDD
MIT License
763 stars 32 forks source link

Generators don't appear to work anymore in Rails 2 #21

Closed texel closed 13 years ago

texel commented 13 years ago

I'm using Bundler with Rails 2.3.9, and though it installs the steak dependency without issue, the generators don't seem to be recognized by my app. I had a peek at the steak code, and it doesn't appear that there are any Rails 2 generators in the gem. If that's the case, it's fine (a bit annoying, but totally understandable)... but you might want to update the documentation to reflect it.

bebanjo commented 13 years ago

How it is steak declared in your Gemfile? Make sure it is under group :development, :test do as is explained in the docs for Rails 3.

There are generators for Rails 2 and they should with bundler, so let me know if you still have problems.

texel commented 13 years ago

The dependency is declared correctly. It looks like the problem is that, at least in my version of the gem, the /generators folder is missing entirely. Not sure exactly what caused that, as the git ls-files -z.split("\0")` should take care of any stragglers. Ideas?

cavalle commented 13 years ago

Could you check in your Gemfile.lock file which version of Steak are you using?

texel commented 13 years ago

steak (1.0.0.rc.1)

Not only that, but I explicitly installed the 1.0.0.rc.1 gem in my local gems, just to take a look at it. No generators folder :(

cavalle commented 13 years ago

Right, Rails 2 generators weren't properly packed in the gem. It's fixed now. Just upgrade to rc.2. Cheers!

cavalle commented 13 years ago

Adding missing Rails 2 generators to the Gem. Closed by 837d7460ec371af4d25e5f8724129ec28db99e45