Sha256: 5d8a51445ce4a8a5cff8ee4b465cdbca77b39082f643c240737188002e700b94
Contents?: true
Size: 567 Bytes
Versions: 2
Compression:
Stored size: 567 Bytes
Contents
require_relative 'support/spec_helper' require 'time_distribution/task' require 'time_distribution/smart_duration' include TimeDistribution describe Task do describe '#new' do it 'works for three arguments' do x_subject = 'subject' x_time_taken = '10 min' x_description = 'interesting description' patient = Task.new(x_subject, x_time_taken, x_description) patient.subject.must_equal x_subject patient.time_taken.must_equal SmartDuration.parse(x_time_taken) patient.desc.must_equal x_description end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
time_distribution-1.1.0 | spec/task_spec.rb |
time_distribution-1.0.0 | spec/task_spec.rb |