Sha256: 2b56be51de8e8fcb338df4398f21b9e0986d8d1f3fdf75c0e7c41a97d5c2c624
Contents?: true
Size: 614 Bytes
Versions: 3
Compression:
Stored size: 614 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, body: fixture('device.json')) end let!(:device) do lelylan.physical_properties('http://mqtt.lelylan.com/devices/1', 'secret', { properties: {} }) end it 'returns the type' do device.id.should_not 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lelylan-rb-0.1.0 | spec/lelylan/client/physical_spec.rb |
lelylan-rb-0.0.5 | spec/lelylan/client/physical_spec.rb |
lelylan-rb-0.0.4 | spec/lelylan/client/physical_spec.rb |