oauth-plugin icon indicating copy to clipboard operation
oauth-plugin copied to clipboard

oauth_controller_spec_helper missing?

Open masterkain opened this issue 13 years ago • 4 comments

Hello, running the generator on a brand new rspec backed rails app I get only oauth_clients_controller_spec.rb in spec/controllers.

This file requires

require File.dirname(__FILE__) + '/oauth_controller_spec_helper'

Which doesn't seems to exists anywhere in the current source.

masterkain avatar Aug 08 '11 18:08 masterkain

I have the same error. The file was deleted in 6e24ec0ee2f3dc871756b2e8a75fa2181ff504f4 but is still used in the other controller tests.

duien avatar Aug 23 '11 14:08 duien

i think you should delete the test file "spec/controllers/oauth_clients_controller_spec.rb", because it's tested inside the gem...

fluxsaas avatar Dec 02 '11 10:12 fluxsaas

In my experience, the generated tests are missing several things. This helper being one, the fixtures being another.

You can safely delete that test.

If you need the fixtures, you can grab them from my tutorial repository based on this gem.

Gazler avatar Dec 02 '11 10:12 Gazler

+1 with this error.

rafamvc avatar Jun 11 '12 22:06 rafamvc