From 4db288bc659a01bd904a581371b32bfc76f0c2a4 Mon Sep 17 00:00:00 2001 From: Sarah Mei Date: Wed, 30 Nov 2011 20:55:59 -0800 Subject: [PATCH] Check order of generation and use of host-meta fixture on travis --- spec/controllers/publics_controller_spec.rb | 1 + spec/lib/webfinger_spec.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/controllers/publics_controller_spec.rb b/spec/controllers/publics_controller_spec.rb index 91effa84c..903fb9162 100644 --- a/spec/controllers/publics_controller_spec.rb +++ b/spec/controllers/publics_controller_spec.rb @@ -16,6 +16,7 @@ describe PublicsController do get :host_meta response.should be_success response.body.should =~ /webfinger/ + puts "Saving host-meta fixture to #{fixture_path}" save_fixture(response.body, "host-meta", fixture_path) end end diff --git a/spec/lib/webfinger_spec.rb b/spec/lib/webfinger_spec.rb index 3da58eb1b..0e7de2cd6 100644 --- a/spec/lib/webfinger_spec.rb +++ b/spec/lib/webfinger_spec.rb @@ -17,7 +17,7 @@ describe Webfinger do let(:good_request) { FakeHttpRequest.new(:success)} - let(:diaspora_xrd) {File.open(File.join(Rails.root, 'spec', 'fixtures', 'host-meta.fixture.html')).read} + let(:diaspora_xrd) {puts "requiring host-meta"; File.open(File.join(Rails.root, 'spec', 'fixtures', 'host-meta.fixture.html')).read} let(:diaspora_finger) {File.open(File.join(Rails.root, 'spec', 'fixtures', 'webfinger.fixture.html')).read} let(:hcard_xml) {File.open(File.join(Rails.root, 'spec', 'fixtures', 'hcard.fixture.html')).read}