Sha256: 331b4616937bc3dbdb4c7df73e53b11e662c208505ab3e72efb4338d22afad96
Contents?: true
Size: 1.03 KB
Versions: 4
Compression:
Stored size: 1.03 KB
Contents
require 'rubygems' begin gem "test-unit" rescue LoadError end begin gem "ruby-debug" require 'ruby-debug' rescue LoadError end require 'test/unit' require 'mocha' # Configure Rails ENV["RAILS_ENV"] = "test" RAILS_ROOT = "anywhere" require 'active_support' require 'action_controller' require 'action_dispatch/middleware/flash' require 'rails/railtie' class ApplicationController < ActionController::Base respond_to :html, :xml end $:.unshift File.expand_path(File.dirname(__FILE__) + '/../lib') require 'responders' I18n.load_path << File.join(File.dirname(__FILE__), 'locales', 'en.yml') I18n.reload! ActionController::Base.view_paths = File.join(File.dirname(__FILE__), 'views') ActionController::Routing::Routes.draw do |map| map.connect 'admin/:action', :controller => "admin/addresses" map.connect ':controller/:action/:id' map.connect ':controller/:action' end class Model < Struct.new(:updated_at) attr_writer :new_record def new_record? @new_record || false end def to_xml(*args) "<xml />" end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
responders-0.5.3 | test/test_helper.rb |
responders-0.5.2 | test/test_helper.rb |
responders-0.5.1 | test/test_helper.rb |
responders-0.5.0 | test/test_helper.rb |