Sha256: 0bebf10baedc7bc0c4ecd0d0955019d951eff38d6e6d2a3da420a24bd6a20d38

Contents?: true

Size: 714 Bytes

Versions: 11

Compression:

Stored size: 714 Bytes

Contents

# -*- coding: utf-8 -*-
require 'spec_helper'
require 'amqp'

describe "receive_event" do
  before do
    Tengine::Core::Driver.delete_all
    Tengine::Core::HandlerPath.delete_all
    Tengine::Core::Session.delete_all
  end

  it "イベントを登録できる" do
    @config = Tengine::Core::Config::Core.new({
        :tengined => {
          :load_path => File.expand_path('./use_dsl_version_method.rb', File.dirname(__FILE__)),
        },
      })
    expect{
      @config.dsl_version.should_not be_blank
      @bootstrap = Tengine::Core::Bootstrap.new(@config)
      @kernel = @bootstrap.kernel
      @kernel.bind
      @bootstrap.load_dsl
    }.to change(Tengine::Core::Driver, :count).by(1)
  end


end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
tengine_core-0.5.39 spec/tengine/core/bugfix/use_dsl_version_method_spec.rb
tengine_core-0.5.38 spec/tengine/core/bugfix/use_dsl_version_method_spec.rb
tengine_core-0.5.37 spec/tengine/core/bugfix/use_dsl_version_method_spec.rb
tengine_core-0.5.36 spec/tengine/core/bugfix/use_dsl_version_method_spec.rb
tengine_core-0.5.35 spec/tengine/core/bugfix/use_dsl_version_method_spec.rb
tengine_core-0.5.34 spec/tengine/core/bugfix/use_dsl_version_method_spec.rb
tengine_core-0.5.33 spec/tengine/core/bugfix/use_dsl_version_method_spec.rb
tengine_core-0.5.32 spec/tengine/core/bugfix/use_dsl_version_method_spec.rb
tengine_core-0.5.31 spec/tengine/core/bugfix/use_dsl_version_method_spec.rb
tengine_core-0.5.30 spec/tengine/core/bugfix/use_dsl_version_method_spec.rb
tengine_core-0.5.28 spec/tengine/core/bugfix/use_dsl_version_method_spec.rb