[rspec-users] Specifying which spec types helper modules get included into in the RSpec.configure block

2 views
Skip to first unread message

S Bennett

unread,
Jul 30, 2010, 12:14:25 PM7/30/10
to rspec...@rubyforge.org
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
_______________________________________________
rspec-users mailing list
rspec...@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

John Firebaugh

unread,
Aug 10, 2010, 4:47:50 PM8/10/10
to rspec...@rubyforge.org
On Jul 30, 9:14 am, S Bennett <logiclab.co...@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

unread,
Aug 16, 2010, 12:50:20 AM8/16/10
to rspec-users
On Tue, Aug 10, 2010 at 3:47 PM, John Firebaugh
<john.fi...@gmail.com> wrote:
> On Jul 30, 9:14 am, S Bennett <logiclab.co...@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

It's been fixed, and the fix will be part of the next release (next week or so).

Reply all
Reply to author
Forward
0 new messages