some rubocop fixes
This commit is contained in:
parent
ba2c8f0323
commit
002f3d2683
2 changed files with 3 additions and 3 deletions
|
|
@ -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("<html></html>") }.to raise_error WebFinger::InvalidDocument
|
||||
expect { WebFinger::XrdDocument.xml_data("<html></html>") }.to raise_error WebFinger::InvalidDocument
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue