File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 Split . redis = 'redis://localhost:6379'
1616 expect ( Split . redis ) . to be_a ( Redis )
1717
18- client = Split . redis . client
19- expect ( client . host ) . to eq ( "localhost" )
20- expect ( client . port ) . to eq ( 6379 )
18+ client = Split . redis . connection
19+ expect ( client [ : host] ) . to eq ( "localhost" )
20+ expect ( client [ : port] ) . to eq ( 6379 )
2121 end
2222
2323 it 'accepts an options hash' do
2424 Split . redis = { host : 'localhost' , port : 6379 , db : 12 }
2525 expect ( Split . redis ) . to be_a ( Redis )
2626
27- client = Split . redis . client
28- expect ( client . host ) . to eq ( "localhost" )
29- expect ( client . port ) . to eq ( 6379 )
30- expect ( client . db ) . to eq ( 12 )
27+ client = Split . redis . connection
28+ expect ( client [ : host] ) . to eq ( "localhost" )
29+ expect ( client [ : port] ) . to eq ( 6379 )
30+ expect ( client [ :db ] ) . to eq ( 12 )
3131 end
3232
3333 it 'accepts a valid Redis instance' do
Original file line number Diff line number Diff line change @@ -40,5 +40,5 @@ Gem::Specification.new do |s|
4040 s . add_development_dependency 'rake' , '~> 12'
4141 s . add_development_dependency 'rspec' , '~> 3.7'
4242 s . add_development_dependency 'pry' , '~> 0.10'
43- s . add_development_dependency 'fakeredis' , '~> 0.6 '
43+ s . add_development_dependency 'fakeredis' , '~> 0.7 '
4444end
You can’t perform that action at this time.
0 commit comments