Open iox opened 11 years ago
Hmmm, in hobo/lib/hobo.rb that error is only printed if app/views/taglibs/application.dryml exists. At that point not much of Hobo is up yet, so there aren't any good ways of checking to see if the wizard has been run yet, but I thought that should be good enough. Could you check to see why that wasn't good enough in your case?
I created a couple of test apps and I realized that this problem only happens when selecting rspec as the test framework:
Your bundle is updated! Use `bundle show [gemname]` to see where a bundled gem is installed.
Finalizing rspec installation...
WARNING: unable to activate will_paginate 3.0.4.hobo. Please add gem "will_paginate", :git => "git://github.com/Hobo/will_paginate.git" to your Gemfile.
Warning: deprecated routes emitted into config/hobo_routes.rb. These will be removed in Hobo 2.1. Disable this warning by setting config.hobo.dont_emit_deprecated_routes = true.
create .rspec
create spec
create spec/spec_helper.rb
I took a look at test_framework_generator.rb
and I saw that rails g rspec:install
is run. I ran that in another terminal before the wizard finishes and that's the origin of the problem:
$ rails g rspec:install
WARNING: unable to activate will_paginate 3.0.4.hobo. Please add gem "will_paginate", :git => "git://github.com/Hobo/will_paginate.git" to your Gemfile.
Could run rails g rspec:install
after adding the git repository to the Gemfile?
I just created a new app with Hobo 2.0.0.pre4 and I saw this warning:
WARNING: unable to activate will_paginate 3.0.4.hobo. Please add gem "will_paginate", :git => "git://github.com/Hobo/will_paginate.git" to your Gemfile.
It turns out that later on the wizard adds the will_paginate git repository to the Gemfile, so this warning is not necessary. It would be nice to remove it.