Sha256: 4d4d64c9dc52deb434b07548a0113d01d88daddb82cc5475e92368ac3b82f08b

Contents?: true

Size: 800 Bytes

Versions: 17

Compression:

Stored size: 800 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 ApplicationHelper
end

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

def setup_controller_spec
  class_eval {include ApplicationHelper}
  sign_out
  setup_model_spec
end

def setup_helper_spec
end

def setup_mailer_spec
  setup_model_spec
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
commontator-4.10.3 spec/spec_helper.rb
commontator-4.10.2 spec/spec_helper.rb
commontator-4.10.1 spec/spec_helper.rb
commontator-4.10.0 spec/spec_helper.rb
commontator-4.9.0 spec/spec_helper.rb
commontator-4.8.0 spec/spec_helper.rb
commontator-4.7.2 spec/spec_helper.rb
commontator-4.7.1 spec/spec_helper.rb
commontator-4.7.0 spec/spec_helper.rb
commontator-4.6.1 spec/spec_helper.rb
commontator-4.6.0 spec/spec_helper.rb
commontator-4.5.4 spec/test_helper.rb
commontator-4.5.3 spec/test_helper.rb
commontator-4.5.2 spec/test_helper.rb
commontator-4.5.1 spec/test_helper.rb
commontator-4.5.0 spec/test_helper.rb
commontator-4.4.1 spec/test_helper.rb