Displaying 1 result from an estimated 1 matches for "faixa_etaria".
2007 Nov 10
2
Problem with view spec - works inside the browser but spec fails with nil object
...;
describe ''/survey/show'' do
fixtures ''questions'', ''alternatives''
before(:each) do
assigns[:configurations] = {:survey_name => ''Whatever''}
assigns[:questions] = Array.new
assigns[:questions][4] = questions(:faixa_etaria)
@faixa_etaria = questions(:faixa_etaria)
end
it ''should display the "question 4" heading correctly'' do
render ''survey/show''
end
end
Here''s the :faixa_etaria Question fixture I''m using:
faixa_etaria:
id: 1
question...