Sha256: 6756a0c5cb590e22e67734c24dcb5229e657e052beacff096b8c80a0db9faee1

Contents?: true

Size: 872 Bytes

Versions: 7

Compression:

Stored size: 872 Bytes

Contents

require 'rubygems'
require 'action_controller'
require 'micronaut'
require 'micronaut-rails'
require 'mocha'
require 'log_buddy'
LogBuddy.init
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

require 'lib/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

def valid_options(overrides = {})
  options = { 
    :message => { :summary => "here is a message" },
    :config => { 
      :to => "joe@example.com", 
      :from => "someone@here.com" 
    }
  }.merge(overrides)
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
chatterbox-0.6.2 examples/example_helper.rb
chatterbox-0.6.1 examples/example_helper.rb
chatterbox-0.6.0 examples/example_helper.rb
chatterbox-0.5.4 examples/example_helper.rb
chatterbox-0.5.3 examples/example_helper.rb
chatterbox-0.5.1 examples/example_helper.rb
chatterbox-0.5.0 examples/example_helper.rb