Sha256: e3c0f18aac18eeb54cb952511793df4673b882b0610bc18b6e377462369faaf8
Contents?: true
Size: 816 Bytes
Versions: 3
Compression:
Stored size: 816 Bytes
Contents
ENV["RAILS_ENV"] = "test" require File.expand_path("../../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 setup_model_spec end def setup_mailer_spec setup_model_spec end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
commontator-2.0.2 | spec/test_helper.rb~ |
commontator-4.0.1 | spec/test_helper.rb~ |
commontator-4.0.0 | spec/test_helper.rb~ |