diff --git a/NEWS.md b/NEWS.md index f4fae4a8f..c88f7284e 100644 --- a/NEWS.md +++ b/NEWS.md @@ -118,7 +118,7 @@ * Docs: re-write into mdBook (Mike Burns, Sara Jackson, Stefanni Brasil) * Docs: clarify that automatic trait definitions could introduce new linting errors (Lawrence Chou). * Internal: skip TruffleRuby on Rails 5.0, 5.1, 5.2 (Andrii Konchyn). -* Internal: fix typoes throughout codebase (Yudai Takada). +* Internal: fix typos throughout codebase (Yudai Takada). * Internal: run CI on `actions/checkout` v3 (Yudai Takada). * Internal: follow standardrb code style (Yudai Takada). * Internal: stop using Hound (Daniel Nolan). diff --git a/docs/src/callbacks/callback_order.md b/docs/src/callbacks/callback_order.md index fbbd8feb6..9607838c1 100644 --- a/docs/src/callbacks/callback_order.md +++ b/docs/src/callbacks/callback_order.md @@ -1,6 +1,6 @@ # Callback Order -When a callback event like `after_build` or `before_all` is triggered, all callbacks for that event are excuted in the following order: +When a callback event like `after_build` or `before_all` is triggered, all callbacks for that event are executed in the following order: 1. Global callbacks. 2. Inherited callbacks. diff --git a/docs/src/ref/add_attribute.md b/docs/src/ref/add_attribute.md index 351e2ed9b..352f8cabd 100644 --- a/docs/src/ref/add_attribute.md +++ b/docs/src/ref/add_attribute.md @@ -5,7 +5,7 @@ pair that will be set when the object is built. The `add_attribute` method takes two arguments: a name (Symbol or String) and a block. This block is called each time this object is constructed. The block is -not called when the attribute is overriden by a build strategy. +not called when the attribute is overridden by a build strategy. Assignment is done by calling the Ruby attribute setter. For example, given diff --git a/docs/src/sequences/generating.md b/docs/src/sequences/generating.md index 61be3edfc..71d21db31 100644 --- a/docs/src/sequences/generating.md +++ b/docs/src/sequences/generating.md @@ -1,6 +1,6 @@ # Generating a Sequence -Being able to diectly generate a sequence, without having to build the object can really speed up testing. This can be achieved by passing the [sequence URI](sequence-uris.md) to `:generate` for a single value or `:generate_list` for an Array of sequential values. +Being able to directly generate a sequence, without having to build the object can really speed up testing. This can be achieved by passing the [sequence URI](sequence-uris.md) to `:generate` for a single value or `:generate_list` for an Array of sequential values. ```ruby FactoryBot.define do @@ -58,7 +58,7 @@ generate_list(:user, :email, 2, scope: jester) # ["Jester-3@example.com", "Jester-4@example.com"] ``` -When testing, the scope can be any object that responds to the referrenced attributes: +When testing, the scope can be any object that responds to the referenced attributes: ```ruby require 'ostruct' diff --git a/spec/factory_bot/attribute_assignment_spec.rb b/spec/factory_bot/attribute_assignment_spec.rb index 754baba4e..29a8608da 100644 --- a/spec/factory_bot/attribute_assignment_spec.rb +++ b/spec/factory_bot/attribute_assignment_spec.rb @@ -1,5 +1,5 @@ describe "Attribute Assignment" do - it "sets the default value if not overriden" do + it "sets the default value if not overridden" do name = :user define_class("User") { attr_accessor :name, :response } factory = FactoryBot::Factory.new(name)