Sha256: 745615ba2134aa71f20b20ac06a184edfdad735eec2d138175eb9c8e8d5f0e66

Contents?: true

Size: 1.09 KB

Versions: 1

Compression:

Stored size: 1.09 KB

Contents

# encoding: utf-8
require 'rubygems'
require 'test/unit'
require 'shoulda'
require 'minitest/spec'

# wycats says...
require 'bundler'
Bundler.setup


ENV['RAILS_ENV'] = 'test'

$:.unshift File.dirname(__FILE__) # add current dir to LOAD_PATHS

require "dummy/config/environment"
require "rails/test_help" # adds stuff like @routes, etc.

gem_dir       = File.join(File.dirname(__FILE__), '..')
test_app_dir  = File.join(gem_dir, 'test', 'app')

require 'cells'

Cell::Rails.append_view_path(File.join(test_app_dir, 'cells'))

require "cell/test_case"
# Extend TestCase.
ActiveSupport::TestCase.class_eval do
  def assert_not(assertion)
    assert !assertion
  end
  
  def assert_is_a(klass, object)
    assert object.is_a?(klass)
  end
end

# Enable dynamic states so we can do Cell.class_eval { def ... } at runtime.
class Cell::Rails
  def action_method?(*); true; end
end

require File.join(test_app_dir, 'cells', 'bassist_cell')
require File.join(test_app_dir, 'cells', 'trumpeter_cell')
require File.join(test_app_dir, 'cells', 'bad_guitarist_cell')

require "haml"
require "haml/template" # Thanks, Nathan!

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cells-3.8.0 test/test_helper.rb