Sha256: 9e6dcc917ba03f537142b9f0245a1a7014503e402572ea14eb5717927dc7d6b1
Contents?: true
Size: 664 Bytes
Versions: 14
Compression:
Stored size: 664 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe CouchPotato, 'full_url_to_database' do before(:each) do @original_database_name = CouchPotato::Config.database_name end after(:each) do CouchPotato::Config.database_name = @original_database_name end it "should add the default localhost and port if only a name is set" do CouchPotato::Config.database_name = 'test' CouchPotato.full_url_to_database.should == 'http://127.0.0.1:5984/test' end it "should return the set url" do CouchPotato::Config.database_name = 'http://db.local/test' CouchPotato.full_url_to_database.should == 'http://db.local/test' end end
Version data entries
14 entries across 14 versions & 2 rubygems