spec/gems_spec.rb in gems-0.5.0 vs spec/gems_spec.rb in gems-0.5.1

- old
+ new

@@ -1,13 +1,16 @@ require 'helper' describe Gems do + after do + Gems.reset + end + context "when delegating to a client" do before do stub_get("/api/v1/gems/rails.yaml"). to_return(:body => fixture("rails.yaml")) - Gems.reset end it "should get the correct resource" do Gems.info('rails') a_get("/api/v1/gems/rails.yaml").should have_been_made @@ -64,6 +67,7 @@ Gems.send(key).should == key end end end end + end