Skip to content

Commit

Permalink
Self explanatory
Browse files Browse the repository at this point in the history
  • Loading branch information
benschwarz committed Jan 26, 2010
1 parent 02af687 commit ca4947b
Showing 1 changed file with 1 addition and 29 deletions.
30 changes: 1 addition & 29 deletions spec/throne_spec.rb
Original file line number Diff line number Diff line change
@@ -1,33 +1,5 @@
require 'spec_helper'

describe Throne do
it "should respond to server" do
Throne.should respond_to :server
end

it "should respond to database" do
Throne.should respond_to :database
end

it "should respond to server=" do
Throne.should respond_to "server="
end

it "should respond to database=" do
Throne.should respond_to "database="
end

it "should default the server to 127.0.0.1:5984" do
Throne.server.should == "http://127.0.0.1:5984"
end

it "should set the server" do
Throne.server = "http://127.0.0.1:5984"
Throne.server.should == "http://127.0.0.1:5984"
end

it "should set the database" do
Throne.database = "appname_environment"
Throne.database.should == "appname_environment"
end
# Nothing to see anymore
end

0 comments on commit ca4947b

Please sign in to comment.