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