Created
June 2, 2016 11:23
-
-
Save yukas/e5eaf49037da651e0967519441d55cdb 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
require "spec_helper" | |
describe OrderReport do | |
subject { | |
Traver.create(order_report: { | |
order: { items: [{ price: 1.0 }, { price: 2.0 }] } | |
}) | |
} | |
describe "#update_order_report" do | |
it "updates fee and total" do | |
subject.update_order_report | |
expect(subject.total).to eq(3.0) | |
expect(subject.fee).to eq(0.03) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment