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

Version Path
insulin-0.1.11 spec/on_track/note_spec.rb
insulin-0.1.10 spec/on_track/note_spec.rb
insulin-0.1.9 spec/on_track/note_spec.rb
insulin-0.1.8 spec/on_track/note_spec.rb
insulin-0.1.7 spec/on_track/note_spec.rb
insulin-0.1.6 spec/on_track/note_spec.rb
insulin-0.1.5 spec/on_track/note_spec.rb
insulin-0.1.4 spec/on_track/note_spec.rb
insulin-0.1.3 spec/on_track/note_spec.rb
insulin-0.1.2 spec/on_track/note_spec.rb
insulin-0.1.1 spec/on_track/note_spec.rb
insulin-0.1.0 spec/on_track/note_spec.rb
insulin-0.0.18 spec/on_track/note_spec.rb
insulin-0.0.17 spec/on_track/note_spec.rb
insulin-0.0.16 spec/on_track/note_spec.rb
insulin-0.0.15 spec/on_track/note_spec.rb
insulin-0.0.14 spec/on_track/note_spec.rb