Sha256: 47e3402e76ca74491b95219f8656c7501c93560370a82bd0e97666498b9ee435

Contents?: true

Size: 357 Bytes

Versions: 3

Compression:

Stored size: 357 Bytes

Contents

# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

require "minitest/autorun"
require_relative "../lib/funky_form"

class MiniTest::Unit::TestCase
  private

  def new_funky_form(&block)
    Class.new do
      include FunkyForm
      model "Anonymous"
      instance_eval(&block) if block_given?
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
funky_form-0.1.2 test/test_helper.rb
funky_form-0.1.1 test/test_helper.rb
funky_form-0.1.0 test/test_helper.rb