Sha256: 374517c394b287bf8181c7b9b70ee44cd1f7a56e4f51b5e6dac776536ee16e9c

Contents?: true

Size: 409 Bytes

Versions: 5

Compression:

Stored size: 409 Bytes

Contents

require 'spec_helper'
require 'goliath/runner'
require 'irb'

describe Goliath::Console do
  before(:each) do
    @server = Goliath::Server.new
  end

  describe 'run!' do
    it "starts a irb session" do
      Object.should_receive(:send).with(:define_method, :goliath_server)
      IRB.should_receive(:start)
      @server.should_receive(:load_config)
      Goliath::Console.run!(@server)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
goliath-1.0.5 spec/unit/console_spec.rb
goliath-1.0.4 spec/unit/console_spec.rb
goliath-1.0.3 spec/unit/console_spec.rb
goliath-1.0.2 spec/unit/console_spec.rb
goliath-1.0.1 spec/unit/console_spec.rb