Skip to content

Commit

Permalink
fix: Value Format should be a string, not charlist (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
staylorwr committed Oct 14, 2020
1 parent d17e02d commit e2d8137
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/ex_teal/metric/value.ex
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ defmodule ExTeal.Metric.Value do
end

@impl true
def format, do: '(0[.]00a)'
def format, do: "(0[.]00a)"

defoverridable format: 0
end
Expand Down
4 changes: 2 additions & 2 deletions test/ex_teal/metric/value_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ defmodule ExTeal.Metric.ValueTest do
end

describe "prefix/0" do
test "defaults to nil" do
test "has a default" do
assert TestExTeal.NewUserMetric.prefix() == nil
end

Expand All @@ -77,7 +77,7 @@ defmodule ExTeal.Metric.ValueTest do

describe "format/0" do
test "defaults to nil" do
assert TestExTeal.NewUserMetric.format() == '(0[.]00a)'
assert TestExTeal.NewUserMetric.format() == "(0[.]00a)"
end

test "can be overriden" do
Expand Down

0 comments on commit e2d8137

Please sign in to comment.