Sha256: 70e2b3262854158eaded474fab8ef578977c093d910f887d73514ebc676d7a6a

Contents?: true

Size: 406 Bytes

Versions: 11

Compression:

Stored size: 406 Bytes

Contents

require "#{File.dirname(__FILE__)}/../screw_unit_spec_helper"

module ScrewUnit
  describe Server do
    describe ".start" do
      it "creates a new instance of Server and calls #start on it" do
        options = { :foo => "bar" }
        mock_server = Object.new
        mock(mock_server).start(options)
        stub(Server).new {  mock_server }
        Server.start(options)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
coolerator.vision-0.2.10 spec/support/vendor/screw-unit/spec/screw_unit/server_spec.rb
coolerator.vision-0.2.9 spec/support/vendor/screw-unit/spec/screw_unit/server_spec.rb
coolerator.vision-0.2.8 spec/support/vendor/screw-unit/spec/screw_unit/server_spec.rb
coolerator.vision-0.2.7 spec/support/vendor/screw-unit/spec/screw_unit/server_spec.rb
coolerator.vision-0.2.6 spec/support/vendor/screw-unit/spec/screw_unit/server_spec.rb
coolerator.vision-0.2.5 spec/support/vendor/screw-unit/spec/screw_unit/server_spec.rb
coolerator.vision-0.2.4 spec/support/vendor/screw-unit/spec/screw_unit/server_spec.rb
coolerator.vision-0.2.3 spec/support/vendor/screw-unit/spec/screw_unit/server_spec.rb
coolerator.vision-0.2.2 spec/support/vendor/screw-unit/spec/screw_unit/server_spec.rb
coolerator.vision-0.2.1 spec/support/vendor/screw-unit/spec/screw_unit/server_spec.rb
coolerator.vision-0.2.0 spec/support/vendor/screw-unit/spec/screw_unit/server_spec.rb