Last active
March 19, 2020 02:38
-
-
Save agungsetiawan/cebbeac4145d062fb7f217c76edaac48 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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