Sha256: d7396612b9638521305048508367492659e44fbb4392b90f82b86e5b16254c6a

Contents?: true

Size: 425 Bytes

Versions: 5

Compression:

Stored size: 425 Bytes

Contents

require "spec_helper"

describe Rector do
  it "allows configuration by yielding a block to #configure" do
    described_class.configure do |c|
      c.foo = :bar
    end

    described_class.configuration.foo.should == :bar
  end

  it "creates backend objects for jobs" do
    backend = described_class.backend_for("abc123")

    backend.should be_a(Rector::Backends::Redis)
    backend.job_id.should == "abc123"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rector-0.0.5 spec/lib/rector_spec.rb
rector-0.0.4 spec/lib/rector_spec.rb
rector-0.0.3 spec/lib/rector_spec.rb
rector-0.0.2 spec/lib/rector_spec.rb
rector-0.0.1 spec/lib/rector_spec.rb