Sha256: b6f7d81c4294b0822483c3136d8b36d90866873e54fa09ea12f0f5ef70b3a2d8
Contents?: true
Size: 677 Bytes
Versions: 17
Compression:
Stored size: 677 Bytes
Contents
require 'insulin' describe Insulin::OnTrack::Note do note = Insulin::OnTrack::Note.new "N:After wine. No overnight hypo." it "should have the correct note" do note.type.should == "note" note.content.should == "after wine. no overnight hypo." end list_note = Insulin::OnTrack::Note.new "F: turkey breast, salad" it "should have the correct list-type note" do list_note.type.should == "food" list_note.content.should == ["turkey breast", "salad"] end fail_note = Insulin::OnTrack::Note.new "X: this one should fail" it "should handle the fail note correctly" do fail_note.type.should == nil fail_note.content.should == nil end end
Version data entries
17 entries across 17 versions & 1 rubygems