Sha256: d93013737eea9a118d3ad123b0c0620df922276d74e16e0005bb225249c0b03e

Contents?: true

Size: 353 Bytes

Versions: 5

Compression:

Stored size: 353 Bytes

Contents

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

describe FreeForm::FormInputKey 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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
freeform-2.0.4 spec/form/form_input_key_spec.rb
freeform-2.0.3 spec/form/form_input_key_spec.rb
freeform-2.0.2 spec/form/form_input_key_spec.rb
freeform-2.0.1 spec/form/form_input_key_spec.rb
freeform-2.0.0 spec/form/form_input_key_spec.rb