Sha256: 8df13e9302bbecc24d53d1dc814d77ded725016cc61b0d8f2576811e80a3540b
Contents?: true
Size: 571 Bytes
Versions: 1
Compression:
Stored size: 571 Bytes
Contents
require 'spec_helper' describe Pushpop::Slack do it 'should make sure there is a message' do step = Pushpop::Slack.new do message 'test' end expect{step.run}.to raise_error end it 'should prepend a # to the channel if its not there' do step = Pushpop::Slack.new do channel 'test' end step.options['channel'].should eq('#test') end it 'should not prepend a # to the channel if its already there' do step = Pushpop::Slack.new do channel '#test' end step.options['channel'].should eq('#test') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pushpop-slack-0.1.0 | spec/pushpop-slack_spec.rb |