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)