Sha256: 90e9096f78cefe473b8374a89113d5881d9fb6adf4e9f7519ef5f1d38aa3ee27

Contents?: true

Size: 655 Bytes

Versions: 7

Compression:

Stored size: 655 Bytes

Contents

# Configure Rails Environment
ENV["RAILS_ENV"] = "test"

require File.expand_path("../dummy/config/environment.rb",  __FILE__)

require "minitest/autorun"
require "minitest/rails"

require "minitest/rails/capybara"

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

7 entries across 7 versions & 1 rubygems

Version Path
commontator-2.0.2 spec/spec_helper.rb~
commontator-4.0.1 spec/spec_helper.rb~
commontator-4.0.0 spec/spec_helper.rb~
commontator-2.0.1 spec/spec_helper.rb~
commontator-2.0.0 spec/spec_helper.rb~
commontator-1.1.3 spec/spec_helper.rb~
commontator-1.1.2 spec/spec_helper.rb~