Sha256: cd7c0136a8a9f5f5334e4663b68b78fc318598e4cc759e96e9c341e9aec23b17
Contents?: true
Size: 786 Bytes
Versions: 1
Compression:
Stored size: 786 Bytes
Contents
# Gems require 'rspec' # Local require_relative 'spec_helper' require_relative '../lib/async_service' module MobME::Infrastructure::RPC describe Runner do it "should respond to class method 'run' with 4 arguments" do Runner.should respond_to(:start).with(4).arguments end describe "#run" do let(:application) { double("Application") } before :each do Thin::Server.stub(:start) end it "starts thin server" do Thin::Server.should_receive(:start).with('0.0.0.0', 8080) Runner.start(application, '0.0.0.0', 8080, '/application') end # it "uses Rack::CommonLogger" do # RPCRunner.should_receive(:use) # RPCRunner.start(application, '0.0.0.0', 8080, '/application') # end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sync_service-0.0.8 | spec/runner_spec.rb |