Sha256: e9ad39abd305e6a433b14228fdbf27d102dfcf17d889cb66cef65eb08f08e87a

Contents?: true

Size: 691 Bytes

Versions: 7

Compression:

Stored size: 691 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

  def test_reconnects_with_existing_connection
    Vanity.playground.establish_connection "mock:/"
    Vanity.playground.reconnect!
    assert_equal Vanity.playground.connection.to_s, "mock:/"
  end

end

Version data entries

7 entries across 7 versions & 4 rubygems

Version Path
vanity-1.8.1 test/playground_test.rb
lookout-vanity-1.8.2 test/playground_test.rb
moses-vanity-1.8.1 test/playground_test.rb
moses-vanity-1.8.0 test/playground_test.rb
vanity-1.8.0 test/playground_test.rb
moses-vanity-1.7.1 test/playground_test.rb
fiverr-vanity-1.7.2 test/playground_test.rb