diff options
Diffstat (limited to 'spec/lib/mattermost/command_spec.rb')
-rw-r--r-- | spec/lib/mattermost/command_spec.rb | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/spec/lib/mattermost/command_spec.rb b/spec/lib/mattermost/command_spec.rb index bc2e47ebbc9..f38bb273e7d 100644 --- a/spec/lib/mattermost/command_spec.rb +++ b/spec/lib/mattermost/command_spec.rb @@ -10,16 +10,10 @@ describe Mattermost::Command do allow(hash).to receive(:parsed_response).and_return(hash) end - context 'with access' do - it 'gets the teams' do - expect(session).to receive(:post) - - described_class.create(session, 'abc', url: 'http://trigger.com') - end - end - - context 'on an error' do + it 'gets the teams' do + expect(session).to receive(:post) + described_class.create(session, 'abc', url: 'http://trigger.com') end end end |