Skip to content

Commit

Permalink
test for returning false boolean results
Browse files Browse the repository at this point in the history
  • Loading branch information
dmcinnes committed Oct 25, 2016
1 parent fe90da1 commit fbee3ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/scientist/observation_test.rb
Expand Up @@ -95,6 +95,11 @@
assert_nil a.cleaned_value
end

it "returns false boolean values" do
a = Scientist::Observation.new("test", @experiment) { false }
assert_equal false, a.cleaned_value
end

it "cleans false values" do
@experiment.clean { |value| value.to_s.upcase }
a = Scientist::Observation.new("test", @experiment) { false }
Expand Down

0 comments on commit fbee3ce

Please sign in to comment.