spec/model/task_spec.rb in taskwarrior-web-1.0.10 vs spec/model/task_spec.rb in taskwarrior-web-1.0.11
- old
+ new
@@ -75,9 +75,14 @@
try.each do |tags|
task = TaskwarriorWeb::Task.new(:tags => tags)
task.tags.should eq(['hi', 'twice', 'and', 'again'])
end
end
+
+ it 'should support most characters' do
+ task = TaskwarriorWeb::Task.new(:tags => '@hi, -twice, !again, ~when')
+ task.tags.should eq(['@hi', '-twice', '!again', '~when'])
+ end
end
describe '#to_hash' do
before do
@task = TaskwarriorWeb::Task.new(:description => 'Testing', :due => '12/2/12', :tags => 'hello, twice')