Skip to content

Commit

Permalink
Add the format_array to the report params, and strip the empty leadin…
Browse files Browse the repository at this point in the history
…g element
  • Loading branch information
jgreben committed Jan 6, 2017
1 parent a5595a2 commit 0547f64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion app/models/circulation_statistics_report_log.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ class CirculationStatisticsReportLog < ActiveRecord::Base
self.table_name = 'circ_stats_rpt_log'

def self.save_stats(circ_stats)
puts "HERE:#{circ_stats.format_array}"
complete_params = other_params(circ_stats).merge process_range_type_params(circ_stats)
complete_params.merge! CirculationStatisticsReportLog.build_output_type(circ_stats)
if circ_stats.barcodes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@

describe 'post#create' do
it 'redirects to root_url on success' do
post :create, circulation_statistics_report: { email: 'test@test.org', lib_array: 'GREEN', call_lo: 'L' }
post :create, circulation_statistics_report: { email: 'test@test.org', lib_array: 'GREEN',
call_lo: 'L', format_array: ['', 'MARC'] }
expect(response).to redirect_to root_url
end

Expand Down

0 comments on commit 0547f64

Please sign in to comment.