Sha256: 15ddec2cdb5cbd0e57816a9ba175c7143fc9d43ec6e1afe4da42715d499d1a74

Contents?: true

Size: 614 Bytes

Versions: 7

Compression:

Stored size: 614 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + "/test_helper")

class UtilityTestRobot < Artoo::Robot
  connection :test_connection
  device :test_device_1
  device :test_device_2
end

describe Artoo::Utility do
  before do
    @robot = UtilityTestRobot.new
  end

  it 'Artoo::Utility#random_string' do
    string = @robot.random_string
    string.must_be_kind_of String
    string.size.must_equal 8
  end

  it 'Artoo::Utility#classify' do
    string = @robot.classify('firmata')
    string.must_equal 'Firmata'

    string = @robot.classify('ardrone_awesome')
    string.must_equal 'ArdroneAwesome'
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
artoo-0.4.0 test/utility_test.rb
artoo-0.3.0 test/utility_test.rb
artoo-0.2.0 test/utility_test.rb
artoo-0.1.3 test/utility_test.rb
artoo-0.1.2 test/utility_test.rb
artoo-0.1.1 test/utility_test.rb
artoo-0.1.0 test/utility_test.rb