Displaying 1 result from an estimated 1 matches for "step_5_registr".
2012 Mar 22
1
Rspec not loading fixtures
...#39;describe'',
Partner.count == 0, so no fixture.
require File.expand_path(File.dirname(__FILE__) + ''/../spec_helper'')
describe DownloadsController do
integrate_views
describe "when PDF is ready" 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[:registran...