diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2015-10-31 14:39:53 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2015-10-31 16:50:56 +0100 |
commit | c1fa8c69f8c71e011ca339cd13ef64dcf6104540 (patch) | |
tree | f590f410ab8b4a1f2c2b84958fbe62ba0a5c4998 /spec | |
parent | 37793a271f5ac06fad505ab27ad19d7f3f77be7f (diff) | |
download | norsk-urskog-registrations-c1fa8c69f8c71e011ca339cd13ef64dcf6104540.tar.gz norsk-urskog-registrations-c1fa8c69f8c71e011ca339cd13ef64dcf6104540.tar.bz2 norsk-urskog-registrations-c1fa8c69f8c71e011ca339cd13ef64dcf6104540.zip |
Move PDF file output to public/uploads
Diffstat (limited to 'spec')
-rw-r--r-- | spec/registration_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/registration_spec.rb b/spec/registration_spec.rb index 96ae18f..9bbf477 100644 --- a/spec/registration_spec.rb +++ b/spec/registration_spec.rb @@ -68,7 +68,7 @@ describe RegistrationApp do it "generates a PDF file" do expect(Prawn::Document).to have_received('new').with({ :page_size => "A4" }) - expect(@doc_spy).to have_received('render_file').with("#{band_params['name']}.pdf") + expect(@doc_spy).to have_received('render_file').with(/uploads\/[0-9]{4}-[0-9]{2}-[0-9]{2}-#{band_params['name']}-#{band_params['city']}\.pdf/) end it 'sends an email to Norsk Urskog' do |