Skip to content

Instantly share code, notes, and snippets.

@agungsetiawan
Last active March 19, 2020 02:30
Show Gist options
  • Save agungsetiawan/553c18cd5c56e796deb89cb98ed2ae41 to your computer and use it in GitHub Desktop.
Save agungsetiawan/553c18cd5c56e796deb89cb98ed2ae41 to your computer and use it in GitHub Desktop.
test "can get accuracy status, accuracy > 100" do
asset_type = create(:asset_type, accuracy: 150)
assert_equal "warning", asset_type.accuracy_status
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment