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