Sha256: 9737a1cb1a11dbc3e6751db9b91e7b1db14194ba7228b733f18e230c1c3adc8d
Contents?: true
Size: 535 Bytes
Versions: 2
Compression:
Stored size: 535 Bytes
Contents
require 'require_all' require 'code-spec' require_all File.dirname(__FILE__) + '/forms-spec' module FormHelperMacro def with_form_helper name class_eval do include get_form_matcher(name) end end protected def get_form_matcher name case name when :formtastic Erb::Formtastic::ContentMatchers when :simpleform Erb::SimpleForm::ContentMatchers else Erb::RailsForm::ContentMatchers end end end RSpec.configure do |config| config.extend(FormHelperMacro) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
forms-spec-0.1.2 | lib/forms-spec.rb |
forms-spec-0.1.1 | lib/forms-spec.rb |