Skip to content

Commit

Permalink
And now we have a test
Browse files Browse the repository at this point in the history
  • Loading branch information
pikesley committed Jan 31, 2016
1 parent 15f8300 commit 3c2c75b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/helpers/application_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,15 @@
)
end
end

describe '#get_type' do
let (:metric) { create :medication_event }
it 'knows dose is a :float' do
expect(helper.get_type metric, 'dose').to eq :float
end

it 'knows insulin is a :string' do
expect(helper.get_type metric, 'insulin').to eq :string
end
end
end

0 comments on commit 3c2c75b

Please sign in to comment.