Sha256: 5ff18942c4727516929eaf3114bb5d9419304d049a3eec6988150d63982d2fe8

Contents?: true

Size: 620 Bytes

Versions: 13

Compression:

Stored size: 620 Bytes

Contents

require 'spec_helper'

describe Creeper::Session do

  it "parses BEANSTALK_URL" do
    ENV['BEANSTALK_URL'] = "beanstalk://localhost:12300"
    Creeper::Session.new.beanstalk_addresses.should == ["localhost:12300"]
    ENV['BEANSTALK_URL'] = "beanstalk://localhost:12300/, beanstalk://localhost:12301/"
    Creeper::Session.new.beanstalk_addresses.should == ["localhost:12300","localhost:12301"]
    ENV['BEANSTALK_URL'] = "beanstalk://localhost:12300   beanstalk://localhost:12301"
    Creeper::Session.new.beanstalk_addresses.should == ["localhost:12300","localhost:12301"]
    ENV['BEANSTALK_URL'] = nil
  end
  
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
creeper-1.0.9 spec/lib/creeper/session_spec.rb
creeper-1.0.8 spec/lib/creeper/session_spec.rb
creeper-1.0.7 spec/lib/creeper/session_spec.rb
creeper-1.0.6 spec/lib/creeper/session_spec.rb
creeper-1.0.5 spec/lib/creeper/session_spec.rb
creeper-1.0.4 spec/lib/creeper/session_spec.rb
creeper-1.0.3 spec/lib/creeper/session_spec.rb
creeper-1.0.2 spec/lib/creeper/session_spec.rb
creeper-1.0.1 spec/lib/creeper/session_spec.rb
creeper-1.0.0 spec/lib/creeper/session_spec.rb
creeper-0.0.5 spec/lib/creeper/session_spec.rb
creeper-0.0.4 spec/lib/creeper/session_spec.rb
creeper-0.0.3 spec/lib/creeper/session_spec.rb