Sha256: 93341e76896a3d7adeb342a04f483e2ced6cb204d1cabf7424d2bcb53cb3c75e

Contents?: true

Size: 424 Bytes

Versions: 7

Compression:

Stored size: 424 Bytes

Contents

# encoding: utf-8
require 'spec_helper'


describe "Flexi Record Field" do

  it "Create from API data" do
    data = {
      "field" => "f_1",
      "name" => "Field Name",
      "width" => "150",
      "editable" => true
    }

    field = Osm::FlexiRecordField.from_api(data)

    field.id.should == 'f_1'
    field.name.should == 'Field Name'
    field.editable.should be_true
    field.valid?.should be_true
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
osm-0.0.26 spec/osm/flexi_record_field_spec.rb
osm-0.0.25 spec/osm/flexi_record_field_spec.rb
osm-0.0.24 spec/osm/flexi_record_field_spec.rb
osm-0.0.23 spec/osm/flexi_record_field_spec.rb
osm-0.0.22 spec/osm/flexi_record_field_spec.rb
osm-0.0.21 spec/osm/flexi_record_field_spec.rb
osm-0.0.20 spec/osm/flexi_record_field_spec.rb