Sha256: a2dbf3178ac846d2ed1f9ee35e9d58d8b54d18b26d8a8d53585bf795ea8723ea
Contents?: true
Size: 795 Bytes
Versions: 2
Compression:
Stored size: 795 Bytes
Contents
ENV["RAILS_ENV"] = "test" require File.expand_path(File.dirname(__FILE__) + "/rails_root/config/environment") require 'test_help' $: << File.expand_path(File.dirname(__FILE__) + '/..') require "watchtower" gem "thoughtbot-factory_girl" # from github require "factory_girl" require "test/factories/watched_exception" require "redgreen" rescue LoadError require "mocha" class ActiveSupport::TestCase self.use_transactional_fixtures = true self.use_instantiated_fixtures = false end class Test::Unit::TestCase def self.should_have_default_scope(options = {}) klass = self.name.gsub(/Test$/, '').constantize should "have the default scope #{options.inspect}" do assert klass.default_scoping.any? {|scope| scope[:find] == options } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
joshuaclayton-watchtower-0.1.3 | test/test_helper.rb |
joshuaclayton-watchtower-0.1.4 | test/test_helper.rb |