ryanb / nifty-generators

A collection of useful Rails generator scripts.
MIT License
1.98k stars 283 forks source link

Deprecation warning from rspec when using nifty:auth #119

Open NobbZ opened 13 years ago

NobbZ commented 13 years ago

In the rspec-tests of the nifty:auth generator is deprecated code, that will not work anymore with rspec 3!

In the require of the generated specs the path to the spec_helper.rb is build up from rails root, you have to change this to

require 'spec_helper'

Probably the same warning comes when using other generators with rspec. Bit I did not test it.

user@ubuntu:~/Dokumente/sources/ruby/1.8.7/rails3/stars3$ rails --version
Rails 3.1.0.rc4
user@ubuntu:~/Dokumente/sources/ruby/1.8.7/rails3/stars3$ rspec --version
2.6.4

From Gemfile.lock: nifty-generators (0.4.6)

Because of this warning guard seemed to infinte-loop around (the process got all the CPU and did not do anything productive, instead I had to kill -9 it)

ryanb commented 13 years ago

Thanks for reporting this. I think I kept it that way for backwards compatibility but I'll change this in the next major release.