Created
March 6, 2015 20:27
-
-
Save jeremyf/f48a31844c7c5d1cd47e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rails_helper' | |
| describe 'MultiValueInput', type: :input do | |
| class Foo | |
| extend ActiveModel::Naming | |
| include ActiveModel::Conversion | |
| include ActiveModel::Validations | |
| def persisted?; false; end | |
| attr_accessor :bar | |
| end | |
| include RSpec::Rails::HelperExampleGroup | |
| def input_for(object, attribute_name, options={}) | |
| helper.simple_form_for object, url: '' do |f| | |
| f.input attribute_name, options | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment