# Copyright 2012 Eric Bouwsema, Anund McKague,
#   David Mile, Nicolas Roldan, Jeff Zakariasen, Mitch Frank,
#   Rahul Bir, Tony Hatfield
#
#    Licensed under the Apache License, Version 2.0 (the "License");
#    you may not use this file except in compliance with the License.
#    You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS,
#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#    See the License for the specific language governing permissions and
#    limitations under the License.

ENV["RAILS_ENV"] = "test"

begin
  require 'simplecov'
  require 'simplecov-rcov'
  
  SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
  
  SimpleCov.start 'rails'
rescue LoadError
  puts 'Coverage disabled, to enable it please install simplecov'
end

require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'

class ActiveSupport::TestCase
  # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
  #
  # Note: You'll currently still have to declare fixtures explicitly in integration tests
  # -- they do not yet inherit this setting
  # fixtures :all

  # Add more helper methods to be used by all tests here...
end
