Sha256: a930b170133fa8f06e778d6dfd3d0a69769093b2e558cdc4361951886a8fb232
Contents?: true
Size: 991 Bytes
Versions: 5
Compression:
Stored size: 991 Bytes
Contents
require 'insulin' describe Insulin::OnTrackNoteSet do simple_note_set = Insulin::OnTrackNoteSet.new "F: turkey breast, salad" it "should have the correct notes" do simple_note_set.should == { "food" => [ "turkey breast", "salad" ] } end multiple_note_set = Insulin::OnTrackNoteSet.new "F: turkey breast, salad N:After wine. No overnight hypo. N:some other note B: glass of wine" it "should have the correct notes" do multiple_note_set.should == { "food" => [ "turkey breast", "salad" ], "note" => [ "after wine. no overnight hypo.", "some other note" ], "booze" => [ "glass of wine" ] } end failing_note_set = Insulin::OnTrackNoteSet.new "F: turkey breast, salad X:This should fail" it "should have the correct notes" do failing_note_set.should == { "food" => [ "turkey breast", "salad" ] } end end
Version data entries
5 entries across 5 versions & 1 rubygems