Skip to content

Instantly share code, notes, and snippets.

@cpjolicoeur
Created January 7, 2009 21:25
Show Gist options
  • Save cpjolicoeur/44444 to your computer and use it in GitHub Desktop.
Save cpjolicoeur/44444 to your computer and use it in GitHub Desktop.
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:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment