From 39230a67388581b808646cfb732079b4c48b8e19 Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Tue, 5 Mar 2024 14:20:19 +0800 Subject: [PATCH] Fix typos Found via `typos --format brief` --- CHANGELOG.md | 4 ++-- README.md | 4 ++-- spec/statesman/machine_spec.rb | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 588840de..0b9d0654 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,7 +44,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -- Calling `active_record.reload` resets the adapater's internal cache +- Calling `active_record.reload` resets the adapter's internal cache ## v10.2.1 3rd April 2023 @@ -450,7 +450,7 @@ No changes from v1.0.0.beta2 ### Fixed -- `ActiveRecordModel.in_state` and `ActiveRecordModel.not_in_state` now handle inital states correctly (patch by [@isaacseymour](https://github.com/isaacseymour)) +- `ActiveRecordModel.in_state` and `ActiveRecordModel.not_in_state` now handle initial states correctly (patch by [@isaacseymour](https://github.com/isaacseymour)) ### Added diff --git a/README.md b/README.md index 972979dd..3e08e3eb 100644 --- a/README.md +++ b/README.md @@ -269,7 +269,7 @@ end By default Statesman does not record a transition to the initial state of the state machine. You can configure Statesman to record a transition to the initial state, this will allow you to: -- Keep an accurate record of the intial state even if configuration changes +- Keep an accurate record of the initial state even if configuration changes - Keep a record of how long the state machine spent in the initial state - Utilise a transition hook for the transition to the initial state @@ -511,7 +511,7 @@ Raised if: ### Runtime errors These errors are raised by `transition_to!`. Using `transition_to` will -supress `GuardFailedError` and `TransitionFailedError` and return `false` instead. +suppress `GuardFailedError` and `TransitionFailedError` and return `false` instead. #### GuardFailedError diff --git a/spec/statesman/machine_spec.rb b/spec/statesman/machine_spec.rb index aefb516a..a6f81ca7 100644 --- a/spec/statesman/machine_spec.rb +++ b/spec/statesman/machine_spec.rb @@ -995,7 +995,7 @@ def after_initialize; end let(:instance) { machine.new(my_model) } let(:metadata) { { some: :metadata } } - context "when it is succesful" do + context "when it is successful" do before do expect(instance).to receive(:transition_to!).once. with(:some_state, metadata).and_return(:some_state)