Displaying 1 result from an estimated 1 matches for "registrant_id".
2012 Mar 22
1
Rspec not loading fixtures
...quot; do
before(:each) do
@registrant = Factory.create(:step_5_registrant)
stub(@registrant).merge_pdf { `touch #{@registrant.pdf_file_path}`
}
@registrant.generate_pdf
@registrant.save!
end
it "provides a link to download the PDF" do
get :show, :registrant_id => @registrant.to_param
assert_not_nil assigns[:registrant]
assert_response :success
assert_template "show"
assert_select "span.button a[target=_blank]"
assert_select "span.button a[onclick]"
end
after(:each) do
`rm #{@re...