From 7fd9b81e555ff2baa5019ca3ae3d4bb340bd2e64 Mon Sep 17 00:00:00 2001 From: Raphael Sofaer Date: Tue, 28 Jun 2011 14:37:55 -0700 Subject: [PATCH] Fix spec in authorizations_controller, get rid of pp --- spec/controllers/authorizations_controller_spec.rb | 3 ++- spec/lib/webfinger_spec.rb | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/spec/controllers/authorizations_controller_spec.rb b/spec/controllers/authorizations_controller_spec.rb index 7ce33729b..0c29ac97d 100644 --- a/spec/controllers/authorizations_controller_spec.rb +++ b/spec/controllers/authorizations_controller_spec.rb @@ -178,7 +178,8 @@ describe AuthorizationsController do end it 'checks consistency of app_url' do - @controller.verify(@signed_string, @sig, @public_key, @manifest.merge({"application_base_url" => "http://badsite.com/"})).should == "the app url in the manifest does not match the url passed in the parameters" + @controller.verify(@signed_string, @sig, @public_key, @manifest.merge({"application_base_url" => "http://badsite.com/"})). + should == "the app url in the manifest (http://badsite.com/) does not match the url passed in the parameters (http://chubbi.es/)." end it 'checks key size' do diff --git a/spec/lib/webfinger_spec.rb b/spec/lib/webfinger_spec.rb index d9d579033..18985c42e 100644 --- a/spec/lib/webfinger_spec.rb +++ b/spec/lib/webfinger_spec.rb @@ -80,8 +80,6 @@ describe Webfinger do # http://tom.joindiaspora.com/.well-known/host-meta f = Webfinger.new("alice@#{host_with_port}").fetch - f.valid? - pp f.errors.full_messages f.should be_valid end