nifty-generators icon indicating copy to clipboard operation
nifty-generators copied to clipboard

Deprecation warning from rspec when using nifty:auth

Open NobbZ opened this issue 12 years ago • 1 comments

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)

NobbZ avatar Jul 22 '11 16:07 NobbZ

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

ryanb avatar Jul 23 '11 20:07 ryanb