diff --git a/README.md b/README.md index 24e12a1a..bd5cba40 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ At first it seemed alright. A little business logic in a controller or model wasn't going to hurt anything. Then one day you wake up -and you're surrounded by fat models and unweildy controllers. Curled +and you're surrounded by fat models and unwieldy controllers. Curled up and crying in the corner, you can't help but wonder how it came to this. diff --git a/lib/active_interaction/base.rb b/lib/active_interaction/base.rb index b912e62e..9e2f2dd3 100644 --- a/lib/active_interaction/base.rb +++ b/lib/active_interaction/base.rb @@ -65,7 +65,7 @@ def initialize(options = {}) end end - # Runs the business logic associated with the interactor. The method is only + # Runs the business logic associated with the interaction. The method is only # run when there are no validation errors. The return value is placed into # {#result}. This method must be overridden in the subclass. # diff --git a/spec/active_interaction/filters/model_filter_spec.rb b/spec/active_interaction/filters/model_filter_spec.rb index 57a0df0b..1573022d 100644 --- a/spec/active_interaction/filters/model_filter_spec.rb +++ b/spec/active_interaction/filters/model_filter_spec.rb @@ -9,7 +9,7 @@ before { options.merge!(class: TestModel) } describe '.prepare(key, value, options = {}, &block)' do - shared_examples 'typechecking' do + shared_examples 'type checking' do context 'with the right class' do let(:value) { TestModel.new } @@ -20,11 +20,11 @@ end context 'with options[:class] as a Class' do - include_examples 'typechecking' + include_examples 'type checking' end context 'with options[:class] as a valid String' do - include_examples 'typechecking' + include_examples 'type checking' before { options.merge!(class: options[:class].to_s) } end diff --git a/spec/active_interaction/integration/model_interaction_spec.rb b/spec/active_interaction/integration/model_interaction_spec.rb index 7618ad56..b7f20702 100644 --- a/spec/active_interaction/integration/model_interaction_spec.rb +++ b/spec/active_interaction/integration/model_interaction_spec.rb @@ -1,5 +1,5 @@ require 'spec_helper' -describe 'ModelInteraciton' do +describe 'ModelInteraction' do it_behaves_like 'an interaction', :model, -> { Proc.new {} }, class: Proc end