spec/lita/handlers/locker_labels_spec.rb in lita-locker-1.0.7 vs spec/lita/handlers/locker_labels_spec.rb in lita-locker-1.0.8
- old
+ new
@@ -79,11 +79,11 @@
expect(replies.last).to eq('Label foobar deleted')
end
it 'shows a warning when <name> does not exist' do
send_command('locker label delete foobar')
- expect(replies.last).to eq('Label foobar does not exist. To create it: "!locker label create foobar"')
+ expect(replies.last).to eq('Label foobar does not exist. To create it: "!locker label create foobar"')
end
it 'accepts a comma-separated list of labels' do
send_command('locker label create foo, bar, baz')
send_command('locker label delete foo, bar,baz')
@@ -106,11 +106,11 @@
expect(replies.last).to eq('Label foobar has no resources')
end
it 'shows an error if the label does not exist' do
send_command('locker label show foobar')
- expect(replies.last).to eq('Label foobar does not exist. To create it: "!locker label create foobar"')
+ expect(replies.last).to eq('Label foobar does not exist. To create it: "!locker label create foobar"')
end
end
describe '#label_add' do
it 'adds a resource to a label if both exist' do
@@ -142,11 +142,11 @@
expect(replies.last).to eq('Resource foo has been added to baz, Resource bar has been added to 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 it: "!locker label create bar"')
+ expect(replies.last).to eq('Label bar does not exist. To create it: "!locker label create bar"')
end
it 'shows an error if the resource does not exist' do
send_command('locker label create bar')
send_command('locker label add foo to bar')
@@ -180,15 +180,15 @@
expect(replies.last).to eq('Resource foo has been removed from baz, Resource bar has been removed from 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 it: "!locker label create bar"')
+ expect(replies.last).to eq('Label bar does not exist. To create it: "!locker label create bar"')
end
it 'shows an error if the label does not exist when given a list of resources' do
send_command('locker label add foo, baz to bar')
- expect(replies.last).to eq('Label bar does not exist. To create it: "!locker label create bar"')
+ expect(replies.last).to eq('Label bar does not exist. To create it: "!locker label create bar"')
end
it 'shows an error if the resource does not exist' do
send_command('locker label create bar')
send_command('locker label add foo to bar')