Skip to content

Instantly share code, notes, and snippets.

@agungsetiawan
Last active March 19, 2020 02:38
Show Gist options
  • Save agungsetiawan/cebbeac4145d062fb7f217c76edaac48 to your computer and use it in GitHub Desktop.
Save agungsetiawan/cebbeac4145d062fb7f217c76edaac48 to your computer and use it in GitHub Desktop.
test "can get accuracy status, accuracy > 100" do
asset_type = create(:asset_type, quantity_on_hand: 1)
create(:asset_inventory, asset_type: asset_type)
create(:asset_inventory, asset_type: asset_type)
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