Sha256: 5012eaf9df6792d3b594347d983f31efad16a173f01622200d4b3d7f17901add

Contents?: true

Size: 845 Bytes

Versions: 6

Compression:

Stored size: 845 Bytes

Contents

ENV['RAILS_ENV'] = 'test'
require File.expand_path('../dummy/config/environment', __FILE__)
require 'rails/test_help'
require 'minitest/rails'

# To add Capybara feature tests add `gem "minitest-rails-capybara"`
# to the test group in the Gemfile and uncomment the following:
# require "minitest/rails/capybara"

# Uncomment for awesome colorful output
# require "minitest/pride"

Rails.backtrace_cleaner.remove_silencers!

Commontator::ApplicationController.class_eval do
  include Commontator::ApplicationHelper
end

def setup_model_spec
  @user = DummyUser.create
  @commontable = DummyModel.create
  @thread = @commontable.thread
end

def setup_controller_spec
  class_eval {include Commontator::ApplicationHelper}
  sign_out
  setup_model_spec
end

def setup_helper_spec
  setup_model_spec
end

def setup_mailer_spec
  setup_model_spec
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
commontator-4.5.3 spec/test_helper.rb~
commontator-4.2.2 spec/test_helper.rb~
commontator-4.2.1 spec/test_helper.rb~
commontator-4.2.0 spec/test_helper.rb~
commontator-4.1.2 spec/test_helper.rb~
commontator-4.1.1 spec/test_helper.rb~