Sha256: eae71bd892f27563e6cee3560fcd2395f2aaeaa6e479c8fe7ffb1539c46cf17b

Contents?: true

Size: 837 Bytes

Versions: 3

Compression:

Stored size: 837 Bytes

Contents

require 'rubygems'
require 'bundler'
Bundler.setup
Bundler.require :default, :test

require 'test/unit'
require "breadcrumbs"
require 'action_controller'
require 'action_controller/test_case'
require 'active_model/naming'

I18n.load_path << File.dirname(__FILE__) + "/resources/en.yml"
I18n.locale = :en

class TestsController < ActionController::Base
end

class UsersController < ActionController::Base
end

module Admin
  class UsersController < ActionController::Base
  end
end

routes = ActionDispatch::Routing::RouteSet.new
routes.draw do
  resources :tests
  resources :users
  namespace :admin do
    resources :users
  end
end
TestsController.send(:include, routes.url_helpers)

class User
  extend ActiveModel::Naming
  extend ActiveModel::Translation

  def to_param; "123" end
  def name_was; "Sam" end
  def name; "" end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bsm-breadcrumbs-0.3.2 test/test_helper.rb
bsm-breadcrumbs-0.3.1 test/test_helper.rb
bsm-breadcrumbs-0.3.0 test/test_helper.rb