cpjolicoeur (owner)

Revisions

gist: 44444 Download_button fork
public
Public Clone URL: git://gist.github.com/44444.git
Embed All Files: show embed
Ruby #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
    before(:all) do
      @report = reports(:reports_001)
      @site = sites(:chatswood)
      @query_data = @report.query_data( :site_id => @site.dw_site_id, :date1 => 1.week.ago.to_s(:dw) , :date2 => 1.day.ago.to_s(:dw) )
    end
 
 
 
NoMethodError in 'ExcelExport#full_report_export before(:all)'
You have a nil object when you didn't expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.[]
./spec/models/excel_export_spec.rb:9: