Rename test script to run
This commit is contained in:
parent
f8d5aba36f
commit
f691962698
@ -1,7 +1,7 @@
|
|||||||
require "bundler/setup"
|
require "bundler/setup"
|
||||||
require "planet_express_express"
|
require "planet_express_express"
|
||||||
|
|
||||||
data = File.read("./data.txt")
|
data = File.read(ARGV[0])
|
||||||
|
|
||||||
shipments = PlanetExpressExpress::ShipmentReader.new(PlanetExpressExpress::PRICE_LIST).read_shipments(data)
|
shipments = PlanetExpressExpress::ShipmentReader.new(PlanetExpressExpress::PRICE_LIST).read_shipments(data)
|
||||||
PlanetExpressExpress::Rules.new(PlanetExpressExpress::PRICE_LIST).apply_rules(shipments)
|
PlanetExpressExpress::Rules.new(PlanetExpressExpress::PRICE_LIST).apply_rules(shipments)
|
Loading…
Reference in New Issue
Block a user