server_test.rb 275 字节
Newer Older
E
eileencodes 已提交
1 2 3 4 5 6 7 8 9
require "active_support/testing/autorun"
require "action_system_test"

class ServerTest < ActiveSupport::TestCase
  test "initializing the server port" do
    server = ActionSystemTest::Server.new(21800)
    assert_equal 21800, server.instance_variable_get(:@port)
  end
end