Sha256: 87d2430618172fea17be0c9aeac6660d6513bb21d2306280a62cd42efd118e00
Contents?: true
Size: 577 Bytes
Versions: 2
Compression:
Stored size: 577 Bytes
Contents
require 'helper' describe Lelylan::Client::Type do let(:lelylan) do Lelylan::Client.new end describe '#physical_properties' do before do stub_request(:put, 'http://mqtt.lelylan.com/devices/1').to_return(status: 202) end let!(:device) do lelylan.physical_properties('http://mqtt.lelylan.com/devices/1', 'secret', { properties: {} }) end it 'returns the type' do device.should be_nil end it 'sends the request' do stub_request(:put, 'http://mqtt.lelylan.com/devices/1').should have_been_made end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lelylan-rb-0.0.3 | spec/lelylan/client/physical_spec.rb |
lelylan-rb-0.0.2 | spec/lelylan/client/physical_spec.rb |