Displaying 1 result from an estimated 1 matches for "downloadscontroller".
Did you mean:
downloadcontroller
2012 Mar 22
1
Rspec not loading fixtures
...ll
end
**** One of the tests in spec/controllers/downloads_controller_spec.rb
is below. I know it is running and I know that before the ''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 "provi...