From 63bb988f761da3fa061c9e3b5d13785477bf44c5 Mon Sep 17 00:00:00 2001 From: Austin Ziegler Date: Thu, 23 Dec 2021 11:14:33 -0500 Subject: standardrb --only Layout/SpaceInsideHashLiteralBraces --fix --- spec/issues_spec.rb | 4 ++-- spec/ldiff_spec.rb | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'spec') diff --git a/spec/issues_spec.rb b/spec/issues_spec.rb index 26460d3..3451d71 100644 --- a/spec/issues_spec.rb +++ b/spec/issues_spec.rb @@ -60,8 +60,8 @@ describe "Diff::LCS Issues" do it "should fail with a correct error" do # standard:disable Style/HashSyntax expect { - actual = { :category => "app.rack.request" } - expected = { :category => "rack.middleware", :title => "Anonymous Middleware" } + actual = {:category => "app.rack.request"} + expected = {:category => "rack.middleware", :title => "Anonymous Middleware"} expect(actual).to eq(expected) }.to raise_error(RSpec::Expectations::ExpectationNotMetError) # standard:enable Style/HashSyntax diff --git a/spec/ldiff_spec.rb b/spec/ldiff_spec.rb index 4a08c43..cf89ada 100644 --- a/spec/ldiff_spec.rb +++ b/spec/ldiff_spec.rb @@ -7,9 +7,9 @@ RSpec.describe "bin/ldiff" do # standard:disable Style/HashSyntax fixtures = [ - { :name => "output.diff", :left => "aX", :right => "bXaX" }, - { :name => "output.diff.chef", :left => "old-chef", :right => "new-chef" }, - { :name => "output.diff.chef2", :left => "old-chef2", :right => "new-chef2" } + {:name => "output.diff", :left => "aX", :right => "bXaX"}, + {:name => "output.diff.chef", :left => "old-chef", :right => "new-chef"}, + {:name => "output.diff.chef2", :left => "old-chef2", :right => "new-chef2"} ].product([nil, "-e", "-f", "-c", "-u"]).map { |(fixture, flag)| fixture = fixture.dup fixture[:flag] = flag -- cgit v1.2.1