spec/lita/handlers/locker_spec.rb in lita-locker-0.5.0 vs spec/lita/handlers/locker_spec.rb in lita-locker-0.5.1
- old
+ new
@@ -284,10 +284,12 @@
send_command('locker resource create baz')
send_command('locker label create bar')
send_command('locker label add foo to bar')
send_command('locker label add baz to bar')
send_command('locker label show bar')
- expect(replies.last).to eq('Label bar has: foo, baz')
+ expect(replies.last).to match(/Label bar has:/)
+ expect(replies.last).to match(/foo/)
+ expect(replies.last).to match(/baz/)
end
it 'shows an error if the label does not exist' do
send_command('locker label add foo to bar')
expect(replies.last).to eq('Label bar does not exist. To create ' \