On Jan 7, 2011, at 8:41 AM, Sarah Allen wrote:
> Getting back to this after the holidays...
>
> David Chelimsky wrote in post #969342:
>> If you need to use spec/integration instead, then you'll need to tell
>> RSpec to include RSpec::Rails::RequestExampleGroup in those examples.
>> You can do that on a per group basis, like this:
>>
>> describe "something" do
>> include RSpec::Rails::RequestExampleGroup
>> ...
>> end
>>
>> Or globally like this:
>>
>> RSpec.configure do |config|
>> config.include RSpec::Rails::RequestExampleGroup,
>> :example_group => {
>> :file_path => /spec\/integration/
>> }
>> end
>
> I tried the approach with an include and it worked fine, which I pushed
> to a branch here:
> https://github.com/blazingcloud/rspec-capybara/tree/simple_custom_spec_directory_config
>
> Also, just changing the directory name to "requests" worked fine too:
> https://github.com/blazingcloud/rspec-capybara
In the 2.4 release it works for spec/integration as well:
http://blog.davidchelimsky.net/2011/01/02/rspec-240-is-released/
> I couldn't find anywhere this was documented. Did I miss a page? If so,
> maybe we can write a blog post post and improve the SEO on this basic
> bit of info. Or point to where it should be documented and maybe we can
> help with that.
Should be documented here: http://relishapp.com/rspec/rspec-rails
Info on contributing/helping is here:
http://blog.davidchelimsky.net/2010/12/23/rspec-2-documentation-2/
Any help would be wonderful!
Cheers,
David
>
> Thanks!
> Sarah
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users