Sha256: 3e3a3c3507e0fc171257a749294a847553f7e9504812e52c5459ec74115e0a75

Contents?: true

Size: 645 Bytes

Versions: 6

Compression:

Stored size: 645 Bytes

Contents

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

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

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

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

6 entries across 6 versions & 1 rubygems

Version Path
commontator-1.1.1 spec/spec_helper.rb
commontator-1.1.0 spec/spec_helper.rb
commontator-1.0.6 spec/spec_helper.rb
commontator-1.0.5 spec/spec_helper.rb
commontator-1.0.4 spec/spec_helper.rb
commontator-1.0.3 spec/spec_helper.rb