Skip to content

Commit

Permalink
Move default database setting to design document spec as the spec_hel…
Browse files Browse the repository at this point in the history
…per is unreliable under `rake` (Thanks, rspec)
  • Loading branch information
benschwarz committed Feb 8, 2010
1 parent 4a60df3 commit 2c2ed12
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
9 changes: 0 additions & 9 deletions spec/spec_helper.rb
Expand Up @@ -4,12 +4,3 @@
require 'throne'
require 'spec'
require 'spec/autorun'

# require 'restclient/components'
# RestClient.enable Rack::CommonLogger, STDOUT

unless Throne::Database.setup? :default
Throne::Database.setup(:default, "http://127.0.0.1:5984/throne-specs")
Throne::Database.destroy(:default)
Throne::Database.create(:default)
end
6 changes: 6 additions & 0 deletions spec/throne/design_document_spec.rb
@@ -1,6 +1,12 @@
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe Throne::DesignDocument do
before :all do
Throne::Database.setup(:default, "http://127.0.0.1:5984/throne-specs")
Throne::Database.destroy(:default)
Throne::Database.create(:default)
end

describe "class" do
describe "new" do
it "should require a major name" do
Expand Down

0 comments on commit 2c2ed12

Please sign in to comment.