Re: [rspec-users] testing instance variables that are set inside views

2007-07-03 Thread Patrick Ritchie
Hi, I think @header may not be an implementation detail in this case. If your layout looks like this: ... <%= @header || 'Default Title' %> ... And the view we are testing looks like this: ... <%= @header = 'Specific Title'> ... Then setting @header is an essential behavior for the view sp

[rspec-users] Testing Rails Associations

2007-07-03 Thread Daniel N
Hi, I'm very new to rspec, so if this is not the right forum please let me know. I'm starting to spec my models first in an existing rails app, porting from a mix of Test::Unit, and simply_bdd amongst others. I'm at the point where I want to test that certain associations are present. What I'm