Skip to content

Commit

Permalink
Fix comment and test typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
tristandunn committed Aug 11, 2023
1 parent 18face6 commit 96cdca9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/services/spawns/activate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def self.call(spawn)
# Duplicate the spawn base entity, assign the spawn room to the entity, and
# return the new entity.
#
# @param [Spawn] spawn The spaw to build an entity for.
# @param [Spawn] spawn The spawn to build an entity for.
# @return [Monster] The entity created.
def self.build_entity(spawn)
entity = spawn.base.dup
Expand Down
6 changes: 3 additions & 3 deletions spec/services/command/parser_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,19 @@ def self.match?(arguments)
stub_const("Commands::Nested::List", no_argument_command)
end

context "when provided arugments" do
context "when provided arguments" do
let(:input) { "/nested add example" }

it { is_expected.to eq(argument_command) }
end

context "when not provided arugments" do
context "when not provided arguments" do
let(:input) { "/nested" }

it { is_expected.to eq(no_argument_command) }
end

context "when provided invalid arugments" do
context "when provided invalid arguments" do
let(:input) { "/nested invalid" }

before do
Expand Down
2 changes: 1 addition & 1 deletion spec/services/event_handlers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

it { is_expected.to include(class_stub) }

context "with a constant that is not a moudle" do
context "with a constant that is not a module" do
before do
stub_const("EventHandlers::PI", 3.14)
end
Expand Down

0 comments on commit 96cdca9

Please sign in to comment.