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

Version Path
langalex-couch_potato-0.2.11 spec/unit/couch_potato_spec.rb
langalex-couch_potato-0.2.12 spec/unit/couch_potato_spec.rb
langalex-couch_potato-0.2.9 spec/unit/couch_potato_spec.rb
couch_potato-0.2.22 spec/unit/couch_potato_spec.rb
couch_potato-0.2.21 spec/unit/couch_potato_spec.rb
couch_potato-0.2.20 spec/unit/couch_potato_spec.rb
couch_potato-0.2.19 spec/unit/couch_potato_spec.rb
couch_potato-0.2.18 spec/unit/couch_potato_spec.rb
couch_potato-0.2.17 spec/unit/couch_potato_spec.rb
couch_potato-0.2.16 spec/unit/couch_potato_spec.rb
couch_potato-0.2.15 spec/unit/couch_potato_spec.rb
couch_potato-0.2.14 spec/unit/couch_potato_spec.rb
couch_potato-0.2.13 spec/unit/couch_potato_spec.rb
couch_potato-0.2.12 spec/unit/couch_potato_spec.rb