spec/spec_helper.rb in git-pivotal-0.1.3 vs spec/spec_helper.rb in git-pivotal-0.2.0
- old
+ new
@@ -1,22 +1,16 @@
require 'rubygems'
require 'mocha'
require 'builder'
require 'pivotal'
-require 'commands/pick'
+require File.join(File.dirname(__FILE__), 'factories')
Spec::Runner.configure do |config|
config.mock_with :mocha
end
-def demo_xml
- Builder::XmlMarkup.new.project do |project|
- project.id 1
- end
-end
-
def stub_connection_to_pivotal
- RestClient::Resource.any_instance.stubs(:get).returns(demo_xml)
+ RestClient::Resource.any_instance.stubs(:get).returns("")
end
def pivotal_api
stub_connection_to_pivotal
Pivotal::Api.new :api_token => 1
\ No newline at end of file