On Sat, Jul 30, 2011 at 2:07 PM, dblock <dblockdot...@gmail.com> wrote:
> I love conventions. But I am trying to write tests for an API,which > lives in ... api. I need to be making http requests, so all my tests > work when put in spec/requests. How can I make that spec/api? > (Obviously renaming requests into api doesn't bring in the code that > lets me do GETs). > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > Add this to your spec_helper.rb: c.include RSpec::Rails::RequestExampleGroup, :type => :request, :example_group => { :file_path => /spec\/api/ }
_______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users