1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot.git synced 2022-11-09 11:43:51 -05:00

Fix some typo (#1542)

* Fix typo "delcaration" -> "declaration"

* Fix typo "Ususually" -> "Usually"

* Fix typo "assocition" -> "association"

* Fix typo "vaue" -> "value"
This commit is contained in:
Yudai Takada 2022-06-08 20:01:10 +09:00 committed by GitHub
parent fc9bb59e43
commit 09053ea0ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View file

@ -1,5 +1,5 @@
describe "associations" do
context "when accidentally using an implicit delcaration for the factory" do
context "when accidentally using an implicit declaration for the factory" do
it "raises an error" do
define_class("Post")
@ -17,7 +17,7 @@ describe "associations" do
end
end
context "when accidentally using an implicit delcaration as an override" do
context "when accidentally using an implicit declaration as an override" do
it "raises an error" do
define_class("Post")

View file

@ -8,7 +8,7 @@ describe FactoryBot::Attribute::Association do
before do
# Define an '#association' instance method allowing it to be mocked.
# Ususually this is determined via '#method_missing'
# Usually this is determined via '#method_missing'
missing_methods = Module.new {
def association(*args)
end

View file

@ -28,7 +28,7 @@ describe FactoryBot::Attribute::Dynamic do
before do
# Define an '#attribute_defined_on_attribute' instance method allowing it
# be mocked. Ususually this is determined via '#method_missing'
# be mocked. Usually this is determined via '#method_missing'
missing_methods = Module.new {
def attribute_defined_on_attribute(*args)
end

View file

@ -21,7 +21,7 @@ describe FactoryBot::Declaration::Implicit do
end
context "with a known sequence" do
it "does not create an assocition attribute" do
it "does not create an association attribute" do
allow(FactoryBot::Internal.sequences).to receive(:registered?).and_return true
declaration = FactoryBot::Declaration::Implicit.new(:name)

View file

@ -91,7 +91,7 @@ describe FactoryBot::DefinitionProxy, "#sequence" do
expect(FactoryBot::Sequence).to have_received(:new).with(:sequence)
end
it "creates a new sequence with an overridden starting vaue" do
it "creates a new sequence with an overridden starting value" do
allow(FactoryBot::Sequence).to receive(:new).and_call_original
proxy = build_proxy(:factory)
override = "override"