From 6244b5de55f2ec5d4b50a2e5d35ad80a761b8ae6 Mon Sep 17 00:00:00 2001 From: Josh Clayton Date: Mon, 7 Mar 2022 20:22:23 -0500 Subject: [PATCH] Apply standard formatting to address errors in specs What? ===== This applies standard's formatting fixes across the codebase. --- spec/acceptance/attributes_for_spec.rb | 6 +++--- spec/acceptance/attributes_ordered_spec.rb | 6 +++--- spec/acceptance/build_stubbed_spec.rb | 8 ++++---- spec/acceptance/overrides_spec.rb | 4 ++-- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/spec/acceptance/attributes_for_spec.rb b/spec/acceptance/attributes_for_spec.rb index ef26e1a..48d26cc 100644 --- a/spec/acceptance/attributes_for_spec.rb +++ b/spec/acceptance/attributes_for_spec.rb @@ -6,9 +6,9 @@ describe "a generated attributes hash" do define_model("Comment") define_model("Post", title: :string, - body: :string, - summary: :string, - user_id: :integer) do + body: :string, + summary: :string, + user_id: :integer) do belongs_to :user has_many :comments end diff --git a/spec/acceptance/attributes_ordered_spec.rb b/spec/acceptance/attributes_ordered_spec.rb index a7c5f2c..2cbcca3 100644 --- a/spec/acceptance/attributes_ordered_spec.rb +++ b/spec/acceptance/attributes_ordered_spec.rb @@ -3,9 +3,9 @@ describe "a generated attributes hash where order matters" do before do define_model("ParentModel", static: :integer, - evaluates_first: :integer, - evaluates_second: :integer, - evaluates_third: :integer) + evaluates_first: :integer, + evaluates_second: :integer, + evaluates_third: :integer) FactoryBot.define do factory :parent_model do diff --git a/spec/acceptance/build_stubbed_spec.rb b/spec/acceptance/build_stubbed_spec.rb index a884646..74e7fde 100644 --- a/spec/acceptance/build_stubbed_spec.rb +++ b/spec/acceptance/build_stubbed_spec.rb @@ -5,10 +5,10 @@ describe "a generated stub instance" do define_model("User") define_model("Post", title: :string, - body: :string, - age: :integer, - user_id: :integer, - draft: :boolean) do + body: :string, + age: :integer, + user_id: :integer, + draft: :boolean) do belongs_to :user end diff --git a/spec/acceptance/overrides_spec.rb b/spec/acceptance/overrides_spec.rb index 6d8ea29..654efef 100644 --- a/spec/acceptance/overrides_spec.rb +++ b/spec/acceptance/overrides_spec.rb @@ -2,8 +2,8 @@ describe "attribute overrides" do before do define_model("User", admin: :boolean) define_model("Post", title: :string, - secure: :boolean, - user_id: :integer) do + secure: :boolean, + user_id: :integer) do belongs_to :user def secure=(value)