Sha256: 89893b114b0546ffdb5ac58c570cb4406a2deb693ec11d4377bf4d5046b30465

Contents?: true

Size: 346 Bytes

Versions: 2

Compression:

Stored size: 346 Bytes

Contents

#$:.unshift(File.dirname(__FILE__))
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'fakeweb'
require 'gom/sensor_port'

RSpec.configure do |config|
  config.before :each do
    FakeWeb.allow_net_connect = false

    $gom = Gom::Remote.connection = Object.new
    (Gom::Remote::Connection.stub! :new).and_return $gom
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gom-sensor-ports-0.2.4 spec/spec_helper.rb
gom-sensor-ports-0.2.3 spec/spec_helper.rb