Skip to content

Commit

Permalink
Fix language in specs
Browse files Browse the repository at this point in the history
  • Loading branch information
coalest committed Dec 7, 2024
1 parent 8c0ad9c commit cfe3b86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions spec/services/item_create_service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
end

context 'when there are no issues' do
it 'should return a success monad with success? evaluating to true and the item' do
it 'should return a success monad with success? returning true and the item' do
expect(subject).to be_a_kind_of(ItemCreateService::Success)
expect(subject.success?).to eq(true)
expect(subject.item).to eq(fake_organization_item)
Expand All @@ -48,7 +48,7 @@
allow(Organization).to receive(:find).with(organization_id).and_raise(ActiveRecord::RecordNotFound)
end

it 'should return a OpenStruct with an ActiveRecord::RecordNotFound error' do
it 'should return a failure monad with an ActiveRecord::RecordNotFound error' do
expect(subject).to be_a_kind_of(ItemCreateService::Failure)
expect(subject.success?).to eq(false)
expect(subject.error).to be_a_kind_of(ActiveRecord::RecordNotFound)
Expand All @@ -62,7 +62,7 @@
allow(fake_organization_item).to receive(:save!).and_raise(fake_error)
end

it 'should return a OpenStruct with the raised error' do
it 'should return a failure monad with the raised error' do
expect(subject).to be_a_kind_of(ItemCreateService::Failure)
expect(subject.success?).to eq(false)
expect(subject.error).to eq(fake_error)
Expand Down
2 changes: 1 addition & 1 deletion spec/services/transfer_destroy_service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
end

context 'when there are no issues' do
it 'should return a success monad with success? evaluating to true' do
it 'should return a success monad with success? returning true' do
expect { subject }.to change { TransferDestroyEvent.count }.by(1)
expect(subject).to be_a_kind_of(TransferDestroyService::Success)
expect(subject.success?).to eq(true)
Expand Down

0 comments on commit cfe3b86

Please sign in to comment.