Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SO META.

* Internal: run CI on `actions/checkout` v3 (Yudai Takada).
* Internal: follow standardrb code style (Yudai Takada).
* Internal: stop using Hound (Daniel Nolan).
Expand Down
2 changes: 1 addition & 1 deletion docs/src/callbacks/callback_order.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docs/src/ref/add_attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions docs/src/sequences/generating.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -58,7 +58,7 @@ generate_list(:user, :email, 2, scope: jester)
# ["[email protected]", "[email protected]"]
```

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'
Expand Down
2 changes: 1 addition & 1 deletion spec/factory_bot/attribute_assignment_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
describe "Attribute Assignment" do
it "sets the <attribute> default value if not overriden" do
it "sets the <attribute> default value if not overridden" do
name = :user
define_class("User") { attr_accessor :name, :response }
factory = FactoryBot::Factory.new(name)
Expand Down