Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (14 sloc) 0.419 kb
require 'spec_helper'
module RedisFailover
describe FailoverStrategy do
describe '.for' do
it 'creates a new latency strategy instance' do
s = FailoverStrategy.for('latency')
s.should be_a RedisFailover::FailoverStrategy::Latency
end
it 'rejects unknown strategies' do
expect { FailoverStrategy.for('foobar') }.to raise_error(RuntimeError)
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.