-
-
Save mPanasiewicz/411f41d1fc9cc9f379a022c9d53ac7f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let(:my_handler) { MyClassInitialization.new(some params) } | |
subject { my_handler.call } | |
shared_examples_for 'returns proper error message' do | |
expect(subject.status).to be_falsey | |
expect(subject.code).to equal(204) | |
expect(subject.payload).not_to be_empty | |
end | |
context 'invalid data' do | |
it_behaves_like 'returns proper error message' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment