Sha256: e21d8c25d6a0e600772c2a0af4dec8c5986612f3610bf9ecf33dd3c3fe43ab0d

Contents?: true

Size: 849 Bytes

Versions: 3

Compression:

Stored size: 849 Bytes

Contents

require './spec/spec_helper'

describe SystemInfo do
  before(:each) do 
    @sysinfo = SystemInfo.new({
      "Name"=>"beh  apiuser", 
      "OfficeId"=>"20071029204441159539000000", 
      "Configuration"=>[{
        "IdxDisclaimer"=>""
      }], 
      "Id"=>"20101206154326670813000000", 
      "MlsId"=>"20000809145531659995000000", 
      "Office"=>"", 
      "Mls"=>"Fargo-Moorhead MLS"
    })
  end

  it "should respond to get" do
    SystemInfo.should respond_to(:get)
  end
  
  it "should respond to attributes" do
    ['Name','OfficeId','Id','MlsId','Office','Mls'].each do |k|
      (@sysinfo.send k.to_sym).should be_a String
    end
    @sysinfo.Configuration.should be_a Array
  end

  it "should have an array of config items" do
    @sysinfo.Configuration.should be_a Array
  end

  after(:each) do 
    @sysinfo = nil
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
flexmls_api-0.3.6 spec/unit/flexmls_api/models/system_info_spec.rb
flexmls_api-0.3.3 spec/unit/flexmls_api/models/system_info_spec.rb
flexmls_api-0.3.2 spec/unit/flexmls_api/models/system_info_spec.rb