Skip to content

Instantly share code, notes, and snippets.

View georg's full-sized avatar

Georg Friedrich georg

  • Melbourne, Australia
View GitHub Profile
### Keybase proof
I hereby claim:
* I am georg on github.
* I am georg (https://keybase.io/georg) on keybase.
* I have a public key whose fingerprint is 29DF 77A3 832D 390D 2265 8E93 FAE4 334A CF5D 93F5
To claim this, I am signing this object:
IT'S SHOWTIME
HEY CHRISTMAS TREE isLessThan100
YOU SET US UP @NO PROBLEMO
HEY CHRISTMAS TREE n
YOU SET US UP 0
HEY CHRISTMAS TREE multiple
YOU SET US UP @NO PROBLEMO
STICK AROUND isLessThan100
# The following code lets you define a custom field_error_proc for a template.
# This can be useful for custom form builders when you don't want the default
# field_error_proc behaviour.
#
# class CustomFormBuilder < ActionView::Helpers::FormBuilder
# def initialize(object_name, object, template, options, proc)
# super
# @template.custom_field_error_proc = method(:field_error_proc)
# end
#
# Put this in features/env/mailtrap.rb to automatically run mailtrap for your Cucumber tests.
class Mailtrap
def self.start
@mailtrap_file = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'tmp', 'mailtrap.log'))
clear_mailtrap_file
@mailtrap = IO.popen("mailtrap run --file=#{@mailtrap_file}")
end
def self.clear_mailtrap_file