Sha256: 2a97b3278fa7a7206cd04dd2e7d396818d589dab91052ad807eacfb6603776af

Contents?: true

Size: 612 Bytes

Versions: 5

Compression:

Stored size: 612 Bytes

Contents

unless ENV['CI']
  require 'simplecov'

  SimpleCov.start do
    add_filter '/spec/'
  end
end

require 'houston'
require 'rspec'

class MockConnection
  class << self
    def open(uri, certificate, passphrase)
      yield self.new
    end
  end

  def initialize
    @unregistered_devices = [
      [443779200, 32, "ce8be6272e43e85516033e24b4c289220eeda4879c477160b2545e95b68b5969"],
      [1388678223, 32, "ce8be6272e43e85516033e24b4c289220eeda4879c477160b2545e95b68b5970"]
    ]
  end

  def read(bytes)
    return nil if @unregistered_devices.empty?

    @unregistered_devices.shift.pack('N1n1H*')
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
houston-2.2.3 spec/spec_helper.rb
houston-2.2.2 spec/spec_helper.rb
houston-2.2.1 spec/spec_helper.rb
houston-2.2.0 spec/spec_helper.rb
houston-2.1.0 spec/spec_helper.rb