Sha256: 03e3296c8bd193ecc304f618a336b9159722b13dcc30a11ae127ef6f0987f09d

Contents?: true

Size: 675 Bytes

Versions: 9

Compression:

Stored size: 675 Bytes

Contents

require 'rubygems'
require 'action_controller'
require 'micronaut'
require 'micronaut-rails'
require 'mocha'

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'lib'))

require 'chatterbox'

def not_in_editor?
  !(ENV.has_key?('TM_MODE') || ENV.has_key?('EMACS') || ENV.has_key?('VIM'))
end

Micronaut.configure do |c|
  c.mock_with :mocha
  c.color_enabled = not_in_editor?
  c.filter_run :focused => true
  c.alias_example_to :fit, :focused => true
  c.enable_controller_support :behaviour => { :describes => lambda { |dt| dt < ::ActionController::Base } }
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
relevance-chatterbox-0.1.0 examples/example_helper.rb
relevance-chatterbox-0.2.0 examples/example_helper.rb
relevance-chatterbox-0.2.1 examples/example_helper.rb
relevance-chatterbox-0.2.2 examples/example_helper.rb
relevance-chatterbox-0.3.0 examples/example_helper.rb
relevance-chatterbox-0.3.1 examples/example_helper.rb
relevance-chatterbox-0.3.2 examples/example_helper.rb
relevance-chatterbox-0.3.3 examples/example_helper.rb
chatterbox-0.3.3 examples/example_helper.rb