Re: [rspec-users] Access to asset_path helper in a Rails 3.1 application request spec

2011-09-25 Thread Justin Ko
On Sep 15, 2011, at 3:08 AM, Silumesii Maboshe wrote: > Hello! > > I am learning to use RSpec for testing Rails 3.1 applications - really > enjoying using it so far. > In testing for the presence of assets (e.g rails.png), I've been using: > > get "/assets/rails.png" > response.status.shou

Re: [rspec-users] Redirecting from rspec.info to relishapp.com/rspec

2011-09-25 Thread David Chelimsky
On Sep 23, 2011, at 3:09 PM, Jack Desert wrote: > I'm interested in writing a redirect app from rspec.info (rspec 1.0) to > relishapp.com/rspec (rspec 2). Can someone tell me who I would contact to get > the information I need (what old links need to redirect to where, etc?) Thanks Jack. A coup

Re: [rspec-users] shared examples in test unit?

2011-09-25 Thread Justin Ko
On Sep 16, 2011, at 4:40 AM, Joaquin Rivera Padron wrote: > hi, > at work we use TestUnit, and I miss there a lot the shared_examples from > RSpec, do you know if is there something alike for TestUnit? > > I know this might be a bit OT but I thought you probably might know :-) > > tia, > joaqui

Re: [rspec-users] How to stub ApplicationController method in request spec

2011-09-25 Thread Justin Ko
On Sep 16, 2011, at 12:33 PM, mattf wrote: > Hey there, > > I am needing to stub a 'current_user' method in an Rspec/capybara > request spec. The method is defined in ApplicationController and is > using helper_method. The method should simply return a user id. > > Alternatively, I could fix my