Sha256: 6b15442a3cd06b49982f03eeb8418a8a2e474dc7cc632547851b95dac4d99f0a

Contents?: true

Size: 492 Bytes

Versions: 11

Compression:

Stored size: 492 Bytes

Contents

require File.dirname(__FILE__) + '/test_helper.rb'

class TestButterflyServer < Test::Unit::TestCase
  context "server" do
    before do
      @server = Butterfly::Server.new({:host => "10.0.0.0", :port => 10000})
    end
    it "should set the host and port properly when passed in as a hash" do
      @server.host.should == "10.0.0.0"
      @server.port.should == 10000
    end
    it "should respond to call (for rack)" do
      @server.respond_to?(:call).should == true
    end
  end
end

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
auser-poolparty-1.1.1 vendor/gems/butterfly/test/test_butterfly_server.rb
auser-poolparty-1.1.3 vendor/gems/butterfly/test/test_butterfly_server.rb
auser-poolparty-1.1.4 vendor/gems/butterfly/test/test_butterfly_server.rb
auser-poolparty-1.1.5 vendor/gems/butterfly/test/test_butterfly_server.rb
auser-poolparty-1.1.7 vendor/gems/butterfly/test/test_butterfly_server.rb
auser-poolparty-1.2.0 vendor/gems/butterfly/test/test_butterfly_server.rb
auser-poolparty-1.2.1 vendor/gems/butterfly/test/test_butterfly_server.rb
auser-poolparty-1.2.2 vendor/gems/butterfly/test/test_butterfly_server.rb
fairchild-poolparty-1.1.3 vendor/gems/butterfly/test/test_butterfly_server.rb
fairchild-poolparty-1.1.4 vendor/gems/butterfly/test/test_butterfly_server.rb
poolparty-1.2.2 vendor/gems/butterfly/test/test_butterfly_server.rb