On Tue, Sep 22, 2009 at 12:22 AM, Aaron Gibralter <aaron.gibral...@gmail.com> wrote: > It doesn't seem like my controller specs are calling my middleware on > requests. Has anyone figured out a good way to test middlware with rspec?
Rack::Test is your friend: http://github.com/brynary/rack-test If you Google it, there's a fair amount of lore out there already on using it in various contexts. (And yes, the methods it provides work just as well in RSpec.) -- Have Fun, Steve Eley (sfe...@gmail.com) ESCAPE POD - The Science Fiction Podcast Magazine http://www.escapepod.org _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users