Sha256: 7321cd73766dd1753524c45c13e174df48298584c4ac39f1474a74f47e677846

Contents?: true

Size: 410 Bytes

Versions: 5

Compression:

Stored size: 410 Bytes

Contents

require "minitest/autorun"
require "nfc"

module NFC
  class TestContext < Minitest::Test
    def test_init
      assert NFC::Context.new
    end

    def test_list_devices
      ctx = NFC::Context.new
      assert ctx.devices(1)
    end

    def test_open
      ctx = NFC::Context.new
      devs = ctx.devices(1)
      skip "no devs attached" unless devs.length > 0
      dev = ctx.open nil
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
nfc-3.1.2 test/test_context.rb
tamashii-nfc-3.1.2 test/test_context.rb
nfc-3.1.1 test/test_context.rb
nfc-3.1.0 test/test_context.rb
nfc-3.0.0 test/test_context.rb