Skip to content

Commit

Permalink
Fix some typo (#1542)
Browse files Browse the repository at this point in the history
* Fix typo "delcaration" -> "declaration"

* Fix typo "Ususually" -> "Usually"

* Fix typo "assocition" -> "association"

* Fix typo "vaue" -> "value"
  • Loading branch information
ydah authored Jun 8, 2022
1 parent fc9bb59 commit 09053ea
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions spec/acceptance/associations_spec.rb
Original file line number Diff line number Diff line change
@@ -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")

Expand All @@ -17,7 +17,7 @@
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")

Expand Down
2 changes: 1 addition & 1 deletion spec/factory_bot/attribute/association_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

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
Expand Down
2 changes: 1 addition & 1 deletion spec/factory_bot/attribute/dynamic_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

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
Expand Down
2 changes: 1 addition & 1 deletion spec/factory_bot/declaration/implicit_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
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)
Expand Down
2 changes: 1 addition & 1 deletion spec/factory_bot/definition_proxy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def build_proxy(factory_name)
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"
Expand Down

0 comments on commit 09053ea

Please sign in to comment.