diff options
Diffstat (limited to 'spec/action')
| -rw-r--r-- | spec/action/custom_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/action/custom_spec.rb b/spec/action/custom_spec.rb index c3224a6..24c6ce8 100644 --- a/spec/action/custom_spec.rb +++ b/spec/action/custom_spec.rb @@ -52,6 +52,12 @@ describe Action::Custom do allow($stdout).to receive(:print).with('push-result') end + it 'prints a message to $stderr' do + VCR.use_cassette("custom-action-ok-with-message") do + expect { subject.execute }.to output(/NOTE: Message here/).to_stderr + end + end + it 'returns an instance of Net::HTTPCreated' do VCR.use_cassette("custom-action-ok") do expect(subject.execute ).to be_instance_of(Net::HTTPCreated) |
