Skip to content

Commit

Permalink
Prefix the contexts with 'when'
Browse files Browse the repository at this point in the history
  • Loading branch information
peteryates committed Jun 12, 2021
1 parent 103e539 commit f873492
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
describe 'error messages' do
subject! { builder.send(method) }

context 'there are multiple errors each with one error message' do
context 'when there are multiple errors each with one error message' do
let(:object) { Person.new(favourite_colour: nil, projects: []) }

specify 'the error summary should contain a list with one error message per field' do
Expand All @@ -50,7 +50,7 @@
end
end

context 'there are multiple errors and one has multiple error messages' do
context 'when there are multiple errors and one has multiple error messages' do
let(:object) { Person.new(name: nil, favourite_colour: nil) }

specify 'the error summary should contain a list with one error message per field' do
Expand Down

0 comments on commit f873492

Please sign in to comment.