Sha256: 13409efe8401f337d3a428368233ac03c742452315fb86b9e0a41008f71bee75

Contents?: true

Size: 758 Bytes

Versions: 12

Compression:

Stored size: 758 Bytes

Contents

require 'spec_helper'
describe Queuel do
  it { should respond_to :engine }
  it { should respond_to :configure }
  it { should respond_to :config }

  it { should respond_to :push }
  it { should respond_to :pop }
  it { should respond_to :<< }
  it { should respond_to :receive }

  describe "engine" do
    describe "unset settings" do
      before { subject.instance_variable_set "@config", nil }
      before { subject.configure { log_level 5 } }
      its(:engine) { should == Queuel::Null::Engine }
    end

    describe "with configured" do
      before do
        subject.configure { engine :iron_mq }
      end
      after { subject.instance_variable_set("@config", nil) }

      its(:engine) { should == Queuel::IronMq::Engine }
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
queuel-0.4.8 spec/lib/queuel_spec.rb
queuel-0.4.6 spec/lib/queuel_spec.rb
queuel-0.4.5 spec/lib/queuel_spec.rb
queuel-0.4.4 spec/lib/queuel_spec.rb
queuel-0.4.3 spec/lib/queuel_spec.rb
queuel-0.4.2 spec/lib/queuel_spec.rb
queuel-0.4.1 spec/lib/queuel_spec.rb
queuel-0.4.0 spec/lib/queuel_spec.rb
queuel-0.3.1 spec/lib/queuel_spec.rb
queuel-0.3.0 spec/lib/queuel_spec.rb
queuel-0.2.0 spec/lib/queuel_spec.rb
queuel-0.1.0 spec/lib/queuel_spec.rb