spec/gems_spec.rb in gems-0.2.0 vs spec/gems_spec.rb in gems-0.3.0
- old
+ new
@@ -28,30 +28,30 @@
it "should return a Gems::Client" do
Gems.new.should be_a Gems::Client
end
end
- describe ".format" do
- it "should return the default format" do
- Gems.format.should == Gems::Configuration::DEFAULT_FORMAT
+ describe ".host" do
+ it "should return the default host" do
+ Gems.host.should == Gems::Configuration::DEFAULT_HOST
end
end
- describe ".format=" do
- it "should set the format" do
- Gems.format = 'xml'
- Gems.format.should == 'xml'
+ describe ".host=" do
+ it "should set the host" do
+ Gems.host = 'http://localhost:3000'
+ Gems.host.should == 'http://localhost:3000'
end
end
describe ".user_agent" do
it "should return the default user agent" do
Gems.user_agent.should == Gems::Configuration::DEFAULT_USER_AGENT
end
end
describe ".user_agent=" do
- it "should set the user_agent" do
+ it "should set the user agent" do
Gems.user_agent = 'Custom User Agent'
Gems.user_agent.should == 'Custom User Agent'
end
end