File: spec_helper.rb

package info (click to toggle)
ruby-jquery-atwho-rails 1.5.4%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 148 kB
  • sloc: ruby: 83; sh: 45; makefile: 9
file content (23 lines) | stat: -rw-r--r-- 584 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Set up generator tests
require 'rails'
require 'rails/all'
require 'rails/generators'

class TestApp < Rails::Application
  config.root = File.dirname(__FILE__)
end
Rails.application = TestApp

module Rails
  def self.root
    @root ||= File.expand_path("../../tmp/", __FILE__)
  end
end
Rails.application.config.root = Rails.root
# Call configure to load the settings from
# Rails.application.config.generators to Rails::Generators
#Rails::Generators.configure!

#Rails.application.config.assets.enabled = true
require "generator_spec"
require 'generators/atwho/install_generator'