Sha256: 629ce9650288531f3bd79aeab4ee18d95aa04031c1339e69a144183302d04119

Contents?: true

Size: 757 Bytes

Versions: 6

Compression:

Stored size: 757 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(: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 == :date_value
      helper.response_class_to_method(:time).should == :time_value
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
upgrade_surveyor_gui-0.1.3 spec/helpers/formtastic_custom_input_spec.rb
upgrade_surveyor_gui-0.1.2 spec/helpers/formtastic_custom_input_spec.rb
surveyor_gui-0.1.2 spec/helpers/formtastic_custom_input_spec.rb
surveyor_gui-0.1.1 spec/helpers/formtastic_custom_input_spec.rb
surveyor_gui-0.1.0 spec/helpers/formtastic_custom_input_spec.rb
surveyor_gui-0.0.3 spec/helpers/formtastic_custom_input_spec.rb