Sha256: 1a5885e675788c14d6bc353a21229966a4058fd4649f2e8fa9a12c79841ea7fa
Contents?: true
Size: 446 Bytes
Versions: 3
Compression:
Stored size: 446 Bytes
Contents
require "spec_helper" describe ReminderTask do it 'parses message' do carl = Lita::User.create(123, name: "Carl") task = ReminderTask.from_message(1, { 'who' => 'me', 'type' => 'in', 'time' => '10m', 'repeat' => '' }, Lita::Source.new(carl, 'room')) task.user_name.should eq carl.name task.user_id.should eq carl.id task.time.should eq (Time.now + 600).to_s task.index.should eq 1 end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lita-reminder-0.0.3 | spec/reminder/task_spec.rb |
lita-reminder-0.0.2 | spec/reminder/task_spec.rb |
lita-reminder-0.0.1 | spec/reminder/task_spec.rb |