Sha256: 907c6dc2bf3ed7c53249270241f1a1979d76d5b0bdcef45e43005271f65d3e21
Contents?: true
Size: 613 Bytes
Versions: 4
Compression:
Stored size: 613 Bytes
Contents
require File.join(File.dirname(__FILE__), 'test_helper.rb') describe Exegesis::Server do before do @db = 'http://localhost:5984/exegesis-test' RestClient.delete @db rescue nil RestClient.delete "#{@db}-2" rescue nil RestClient.put @db, '' @server = Exegesis::Server.new('http://localhost:5984') end describe "listing databases" do expect { @server.databases.must_include('exegesis-test') } end describe "creating a database" do before do @response = @server.create_database('exegesis-test-2') end expect { assert @response['ok'] } end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mattly-exegesis-0.2.3 | test/server_test.rb |
mattly-exegesis-0.2.5 | test/server_test.rb |
mattly-exegesis-0.2.6 | test/server_test.rb |
mattly-exegesis-0.2.8 | test/server_test.rb |