Sha256: 596f8fe738b44837a7ba62d6fd641cf6d19f3086b8584731e7d806aa4f4d3d16

Contents?: true

Size: 376 Bytes

Versions: 9

Compression:

Stored size: 376 Bytes

Contents

# encoding: utf-8
require 'spec_helper'

describe "Grouping" do

  it "Create" do
    data = {
      'patrolid' => 1,
      'name' => 'Patrol Name',
      'active' => 1,
      'points' => '2',
    }
    patrol = Osm::Grouping.new(data)

    patrol.id.should == 1
    patrol.name.should == 'Patrol Name'
    patrol.active.should == true
    patrol.points.should == 2
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
osm-0.0.11 spec/osm/grouping_spec.rb
osm-0.0.10 spec/osm/grouping_spec.rb
osm-0.0.9 spec/osm/grouping_spec.rb
osm-0.0.8 spec/osm/grouping_spec.rb
osm-0.0.7 spec/osm/grouping_spec.rb
osm-0.0.6 spec/osm/grouping_spec.rb
osm-0.0.5 spec/osm/grouping_spec.rb
osm-0.0.4 spec/osm/grouping_spec.rb
osm-0.0.3 spec/osm/grouping_spec.rb