Sha256: 7535c74d4d1f7be4e06fca25c44e4ad7807c482265701c14909d1a97c549dfa3

Contents?: true

Size: 437 Bytes

Versions: 16

Compression:

Stored size: 437 Bytes

Contents

require 'spec_helper'
require 'freeform/form/form_input_key'

describe FreeForm::FormInputKey do
  describe "form input key", :form_input_key => true do
    let(:form_class) do
      Class.new(Module) do
        include FreeForm::FormInputKey
        form_input_key :test_key
        
        attr_accessor :my_accessor
      end
    end

    it "sets form_input_key" do
      form_class.model_name.should eq("TestKey")
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
freeform-1.0.11 spec/form/form_input_key_spec.rb
freeform-1.0.9 spec/form/form_input_key_spec.rb
freeform-1.0.8 spec/form/form_input_key_spec.rb
freeform-1.0.6 spec/form/form_input_key_spec.rb
freeform-1.0.5 spec/form/form_input_key_spec.rb
freeform-1.0.4 spec/form/form_input_key_spec.rb
freeform-1.0.3 spec/form/form_input_key_spec.rb
freeform-1.0.2 spec/form/form_input_key_spec.rb
freeform-1.0.1 spec/form/form_input_key_spec.rb
freeform-1.0.0 spec/form/form_input_key_spec.rb
freeform-0.0.4 spec/form/form_input_key_spec.rb
freeform-0.0.3.rc4 spec/form/form_input_key_spec.rb
freeform-0.0.3.rc3 spec/form/form_input_key_spec.rb
freeform-0.0.3.rc2 spec/form/form_input_key_spec.rb
freeform-0.0.3.rc1 spec/form/form_input_key_spec.rb
freeform-0.0.2 spec/form/form_input_key_spec.rb