Sha256: e857ca215b2256e37a06e8894c9ada21db6c3bff03dfde94b67770e5fad3800a

Contents?: true

Size: 491 Bytes

Versions: 4

Compression:

Stored size: 491 Bytes

Contents

require "test/test_helper"

class PlaygroundTest < Test::Unit::TestCase

  def test_has_one_global_instance
    assert instance = Vanity.playground
    assert_equal instance, Vanity.playground
  end

  def test_be_use_js
    assert !Vanity.playground.using_js?
    Vanity.playground.use_js!
    assert Vanity.playground.using_js?
  end

  def test_chooses_path_sets_default
    assert_equal Vanity.playground.add_participant_path, Vanity::Playground::DEFAULT_ADD_PARTICIPANT_PATH
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vanity-1.7.1 test/playground_test.rb
vanity-1.7.0 test/playground_test.rb
vanity-1.6.1 test/playground_test.rb
vanity-1.6.0 test/playground_test.rb