Sha256: a6c77c451e9709befad66e0af9237acd10afd986359d22141d921a14462a243e

Contents?: true

Size: 480 Bytes

Versions: 4

Compression:

Stored size: 480 Bytes

Contents

require File.expand_path("../../spec_helper", __FILE__)

describe RedisRing::Application do

  before(:each) do
    @conf = RedisRing::Configuration.from_yml_file(File.expand_path("../../test.conf", __FILE__))
    @app = RedisRing::Application.new(@conf)
  end

  it "should run shards" do
    @app.start
    sleep(1)

    @app.slave.join
    sleep(3)

    @app.slave.running_shards.keys.sort.should == [0, 1, 2, 3]
  end

  after(:each) do
    @app.stop
    @app.wait
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
redis_ring-0.1.3 spec/redis_ring/application_spec.rb
redis_ring-0.1.2 spec/redis_ring/application_spec.rb
redis_ring-0.1.1 spec/redis_ring/application_spec.rb
redis_ring-0.1.0 spec/redis_ring/application_spec.rb