Skip to content

Commit

Permalink
Apply standard formatting to address errors in specs
Browse files Browse the repository at this point in the history
What?
=====

This applies standard's formatting fixes across the codebase.
  • Loading branch information
joshuaclayton committed Mar 8, 2022
1 parent fc098ff commit 6244b5d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions spec/acceptance/attributes_for_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
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
Expand Down
6 changes: 3 additions & 3 deletions spec/acceptance/attributes_ordered_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

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
Expand Down
8 changes: 4 additions & 4 deletions spec/acceptance/build_stubbed_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
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

Expand Down
4 changes: 2 additions & 2 deletions spec/acceptance/overrides_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
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)
Expand Down

0 comments on commit 6244b5d

Please sign in to comment.