lib/code-spec.rb in code-spec-0.2.0 vs lib/code-spec.rb in code-spec-0.2.1
- old
+ new
@@ -11,34 +11,11 @@
require_all File.dirname(__FILE__) + '/code_spec/matchers'
require 'code_spec/content_helpers'
require 'code_spec/core_ext'
-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.include RSpec::RubyContentMatchers
- config.extend(FormHelperMacro)
+ config.include RSpec::RubyContentMatchers
end