From 002f3d268365a606870580786124a6f54ac49bb6 Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Tue, 23 Jun 2015 01:17:51 +0200 Subject: [PATCH] some rubocop fixes --- spec/lib/web_finger/xrd_document_spec.rb | 4 ++-- spec/support/fixture_generation.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/lib/web_finger/xrd_document_spec.rb b/spec/lib/web_finger/xrd_document_spec.rb index a4f8dbc..18d566d 100644 --- a/spec/lib/web_finger/xrd_document_spec.rb +++ b/spec/lib/web_finger/xrd_document_spec.rb @@ -76,11 +76,11 @@ XML end it "raises InvalidDocument if the xml is empty" do - expect{ WebFinger::XrdDocument.xml_data("") }.to raise_error WebFinger::InvalidDocument + expect { WebFinger::XrdDocument.xml_data("") }.to raise_error WebFinger::InvalidDocument end it "raises InvalidDocument if the xml is no XRD document" do - expect{ WebFinger::XrdDocument.xml_data("") }.to raise_error WebFinger::InvalidDocument + expect { WebFinger::XrdDocument.xml_data("") }.to raise_error WebFinger::InvalidDocument end end end diff --git a/spec/support/fixture_generation.rb b/spec/support/fixture_generation.rb index 1758017..d7081e7 100644 --- a/spec/support/fixture_generation.rb +++ b/spec/support/fixture_generation.rb @@ -1,6 +1,6 @@ module FixtureGeneration # Saves the markup to a fixture file using the given name - def save_fixture(markup, name, fixture_path=nil ) + def save_fixture(markup, name, fixture_path=nil) fixture_path = Rails.root.join("tmp", "fixtures") unless fixture_path Dir.mkdir(fixture_path) unless File.exist?(fixture_path)