Sha256: 4af3f16b73041b1f6b4870c4ad42d52d5d49c4fc6efa5d525e389414bdc30dbf
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
# Configure Rails Environment ENV["RAILS_ENV"] = "test" require File.expand_path("../dummy/config/environment.rb", __FILE__) require "rails/test_help" require "rails/generators" require "flexmock/test_unit" require "factory_girl" require "shoulda" require "paperclip/matchers" Rails.backtrace_cleaner.remove_silencers! # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } # Load factories Dir["#{File.dirname(__FILE__)}/factories/*.rb"].each { |f| require f } MintReporter.config do |c| c.paperclip_storage_options = { :url => "http://test.local/uploads/:class/:id_partition/:style.:extension", :path => ":rails_root/public/uploads/test/:class/:id_partition/:style.:extension" } c.reports = %w[BasicReport BlankReport] end class BasicReport < Report def csv_column_names ['col1', 'col2'] end def csv_row(record) [record.one, record.two] end def records [ OpenStruct.new(:one => 'one', :two => 'two'), OpenStruct.new(:one => 'a', :two => 'b') ] end end class ActiveSupport::TestCase extend Paperclip::Shoulda::Matchers end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mint_reporter-0.0.7 | test/test_helper.rb |