Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some typo #1542

Merged
merged 4 commits into from
Jun 8, 2022
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
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