[rspec-users] shared examples in test unit?

2011-09-24 Thread Joaquin Rivera Padron
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, joaquin -- para.pent.es vamos a volar, let's go flying least-significant-bit.com

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

2011-09-24 Thread mattf
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 problem by setting 'session[:user_id]' in the spec (which

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

2011-09-24 Thread Silumesii Maboshe
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.should be(200) After some reading about the Rails 3.1 asset pipeline I disc

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

2011-09-24 Thread Jack Desert
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?) -Jack Rails/PHP Developer Healthtalker.com ___