Re: [rspec-users] rspec-rails and rack middleware

2009-09-22 Thread Aaron Gibralter
t 8:24 AM, Aaron Gibralter > wrote: > > > > I can get the dummy_app to work, but now I'm trying to figure out how to > use > > my Rails app. I'll keep playing around and see if I can come up with > > anything. > > It sounds like you're trying to

[rspec-users] rspec-rails and rack middleware

2009-09-22 Thread Aaron Gibralter
Ah ok. I tried that, but I can't seem to figure out what to use for the def app ... end method in my spec though. The app is my Rails app... for now I have something like: http://www.pastie.org/625791 I can get the dummy_app to work, but now I'm trying to figure out how to use my Rails app. I'l

[rspec-users] rspec-rails and rack middleware

2009-09-21 Thread Aaron Gibralter
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? I'm thinking something like rails' rails/actionpack/test/controller/session/mem_cache_store_test.rb but with rspec... any thoughts? Thanks! Best, Aaron __