Sha256: 78d5dfd9eaff3b5a50fb06359d02ca19597555855b9c5a06b298d0882c61cc9f

Contents?: true

Size: 536 Bytes

Versions: 1

Compression:

Stored size: 536 Bytes

Contents

# This code is free software; you can redistribute it and/or modify it under the
# terms of the new BSD License.
#
# Copyright (c) 2009, Sebastian Staudt

require 'test_helper'

class ThrobberTests < Test::Unit::TestCase

  context 'A throbber' do

    should 'be a subclass of Thread' do
      assert_equal Thread, Rubikon::Throbber.superclass
    end

    should 'have default throbber strings' do
      assert_equal %w{SPINNER}, Throbber.constants
      assert_equal '-\|/', Rubikon::Throbber.const_get(:SPINNER)
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubikon-0.2.0 test/throbber_tests.rb