Sha256: d1c88502930b97e10e84b2b358c25532706c3473b86831cbc3db63ae4283c360

Contents?: true

Size: 435 Bytes

Versions: 8

Compression:

Stored size: 435 Bytes

Contents

require 'spec_helper'

describe WialonApi::Resolvable do
  before(:each) do
    @class = Class.new do
      include WialonApi::Resolvable
    end
  end

  describe '#initialize' do
    it 'saves the name and the resolver' do
      resolver   = Hashie::Mash.new(sid: 'sid')
      resolvable = @class.new(:name, resolver: resolver)

      expect(resolvable.name).to eq('name')
      expect(resolvable.sid).to eq('sid')
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
wialon_api-0.0.8 spec/wialon_api/resolvable_spec.rb
wialon_api-0.0.7 spec/wialon_api/resolvable_spec.rb
wialon_api-0.0.6 spec/wialon_api/resolvable_spec.rb
wialon_api-0.0.5 spec/wialon_api/resolvable_spec.rb
wialon_api-0.0.4 spec/wialon_api/resolvable_spec.rb
wialon_api-0.0.3 spec/wialon_api/resolvable_spec.rb
wialon_api-0.0.2 spec/wialon_api/resolvable_spec.rb
wialon_api-0.0.1 spec/wialon_api/resolvable_spec.rb