Sha256: caf45cbfe12b33cf5b5d663bf56f10e30c70d0f64274c2873befb519407d5009

Contents?: true

Size: 661 Bytes

Versions: 1

Compression:

Stored size: 661 Bytes

Contents

require 'spec_helper'
# 
# This test excercizes pretty much most of the control methods
# on an actual WiFly.  Supplying the WIFLY_IP as an environment
# variable activates this test. 
# That means you should have the WiFly connected to a network 
# accessible by the computer running this test. 
#
if WIFLY_IP
  describe Wifly do
    it 'should really work' do
      2.times do 
        control=Wifly::Control.new(WIFLY_IP, 2000)
        5.times do |n|
          control.set_high(7)
          control.read_pin(7).should eq(1)
          control.set_low(7)
          control.read_pin(7).should eq(0)
        end
        control.close
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wifly-1.0.0 spec/integration_spec.rb