S Bennett
2010-Jul-30 16:14 UTC
[rspec-users] Specifying which spec types helper modules get included into in the RSpec.configure block
Hi folks,
Using Rails 3.0.0.rc & RSpec 2.0.0.beta.19
I''m trying to specify what type of specs helper modules get included
into such as below:
config.include Devise::TestHelpers, :type => :controller
When I run the controller specs I get undefined method
''sign_in'' which
tells me that the helpers aren''t getting included.
If I remove the :type => :controller hash from the statement, the
module is included ok (into all spec types) and the specs pass.
Am I doing something wrong or has the syntax for specifying which spec
types the modules get included into changed?
Thanks
Simon
John Firebaugh
2010-Aug-10 20:47 UTC
[rspec-users] Specifying which spec types helper modules get included into in the RSpec.configure block
On Jul 30, 9:14?am, S Bennett <logiclab.co... at googlemail.com> wrote:> Am I doing something wrong or has the syntax for specifying which spec > types the modules get included into changed?I have the same problem. I filed an issue: http://github.com/rspec/rspec-rails/issues/issue/159
David Chelimsky
2010-Aug-16 04:50 UTC
[rspec-users] Specifying which spec types helper modules get included into in the RSpec.configure block
On Tue, Aug 10, 2010 at 3:47 PM, John Firebaugh <john.firebaugh at gmail.com> wrote:> On Jul 30, 9:14?am, S Bennett <logiclab.co... at googlemail.com> wrote: >> Am I doing something wrong or has the syntax for specifying which spec >> types the modules get included into changed? > > I have the same problem. I filed an issue: > > http://github.com/rspec/rspec-rails/issues/issue/159It''s been fixed, and the fix will be part of the next release (next week or so).