Sha256: ba5456ff1b9ccb3b95f47a1658a6bd3428ce753649228f37b1e6a3f414defb4b
Contents?: true
Size: 844 Bytes
Versions: 4
Compression:
Stored size: 844 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') require File.expand_path(File.dirname(__FILE__) + '/../../lib/surveyor/helpers/formtastic_custom_input') describe Surveyor::Helpers::FormtasticCustomInput do context "input helpers" do it "should translate response class into attribute" do helper.response_class_to_method(:string).should == :string_value helper.response_class_to_method(:other_and_string).should == :string_value helper.response_class_to_method(:integer).should == :integer_value helper.response_class_to_method(:float).should == :float_value helper.response_class_to_method(:datetime).should == :datetime_value helper.response_class_to_method(:date).should == :datetime_value helper.response_class_to_method(:time).should == :datetime_value end end end
Version data entries
4 entries across 4 versions & 1 rubygems