Created
July 31, 2016 21:39
-
-
Save poctek/b69466bda44d45c89201e2ac54e1cdc4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
it "shouldn't create treatment" do | |
allow(DPDMessageSender).to receive(:send) | |
expect do | |
expect do | |
subject.new(invalid_params).handle | |
end.to raise_error(ActiveRecord::Rollback) | |
end.not_to change(Treatment, :count) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment