Created
October 12, 2011 16:25
-
-
Save bmishkin/1281719 to your computer and use it in GitHub Desktop.
countrystone rspecs
This file contains hidden or 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
Hobbes-iMac:countrystone $ rspec spec | |
No DRb server is running. Running in local process instead ... | |
cleaning out account types | |
Seeding account types... | |
1) IntraOrder callbacks .set_reference_po should be called on create and generate a PO and assign reference po number to sales order | |
Failure/Error: io.reference_po.internal_number.should == PurchaseOrder.last.internal_number | |
undefined method `internal_number' for nil:NilClass | |
# ./spec/models/intra_order_spec.rb:100:in `block (3 levels) in <top (required)>' | |
2) InventoryProduction instance methods .create_label should create a label file and return the label object | |
Failure/Error: File.exists?(ip.create_label.full_path).should be_true | |
can't convert nil into String | |
# ./app/mixins/pdf_printer/print_labels.rb:84:in `generate_file!' | |
# ./app/models/inventory_production.rb:622:in `create_label' | |
# ./spec/models/inventory_production_spec.rb:340:in `block (3 levels) in <top (required)>' | |
3) Label callback methods should generate a label PDF after save | |
Failure/Error: lb.save! | |
can't convert nil into String | |
# ./app/mixins/pdf_printer/print_labels.rb:84:in `generate_file!' | |
# ./spec/models/label_spec.rb:63:in `block (3 levels) in <top (required)>' | |
4) PurchaseOrder instance methods .print_to_pdf should generate a file | |
Failure/Error: path = po.print_to_pdf | |
can't convert nil into String | |
# ./app/mixins/pdf_printer/print_purchase_orders.rb:169:in `print_to_pdf' | |
# ./spec/models/purchase_order_spec.rb:216:in `block (3 levels) in <top (required)>' | |
5) PurchaseOrder instance methods .received should process reference_po send straight to payment | |
Failure/Error: expect { po.receive }.to change(po.reference_po, :state) | |
undefined method `state' for nil:NilClass | |
# ./spec/models/purchase_order_spec.rb:286:in `block (3 levels) in <top (required)>' | |
6) SalesOrderItem validations | |
Failure/Error: it { should validate_numericality_of :pallets } | |
Expected errors to include "is not a number" when pallets is set to "abcd", got errors: ["inventory_item_id can't be blank (nil)", "units must be greater than 0 (#<BigDecimal:7fadb6fa7df8,'0.0',9(18)>)", "unit_price_in_cents must be greater than 0 (0)"] | |
# ./spec/models/sales_order_item_spec.rb:39:in `block (3 levels) in <top (required)>' | |
7) SalesOrder instance methods .set_reference_po should generate a PO and assign reference po number to sales order | |
Failure/Error: so.reference_po.internal_number.should == PurchaseOrder.last.internal_number | |
undefined method `internal_number' for nil:NilClass | |
# ./spec/models/sales_order_spec.rb:381:in `block (3 levels) in <top (required)>' | |
8) SalesOrder instance methods .reference_po internal_number should equal sales order internal_number | |
Failure/Error: PurchaseOrder.last.internal_number.should == so.reference_po.internal_number | |
undefined method `internal_number' for nil:NilClass | |
# ./spec/models/sales_order_spec.rb:387:in `block (3 levels) in <top (required)>' | |
9) SalesOrder instance methods .print_pick_list_pdf should update record pick list print time | |
Failure/Error: expect { so.print_pick_list_pdf }.to change(so.print_records, :count) | |
can't convert nil into String | |
# ./app/mixins/pdf_printer/print_sales_orders.rb:836:in `print_pick_list_pdf' | |
# ./spec/models/sales_order_spec.rb:393:in `block (4 levels) in <top (required)>' | |
# ./spec/models/sales_order_spec.rb:393:in `block (3 levels) in <top (required)>' | |
10) SalesOrder instance methods .print_ship_ticket_pdf should update record ship ticket print time | |
Failure/Error: expect { so.print_ship_ticket_pdf }.to change(so.print_records, :count) | |
can't convert nil into String | |
# ./app/mixins/pdf_printer/print_sales_orders.rb:857:in `print_ship_ticket_pdf' | |
# ./spec/models/sales_order_spec.rb:399:in `block (4 levels) in <top (required)>' | |
# ./spec/models/sales_order_spec.rb:399:in `block (3 levels) in <top (required)>' | |
11) SalesOrder instance methods .print_invoice_pdf should update record invoice print time | |
Failure/Error: expect { so.print_invoice_pdf }.to change(so.print_records, :count) | |
can't convert nil into String | |
# ./app/mixins/pdf_printer/print_sales_orders.rb:880:in `print_invoice_pdf' | |
# ./spec/models/sales_order_spec.rb:405:in `block (4 levels) in <top (required)>' | |
# ./spec/models/sales_order_spec.rb:405:in `block (3 levels) in <top (required)>' | |
12) SalesOrder instance methods state transitions .invoice should process reference_po send straight to payment | |
Failure/Error: expect { so.invoice }.to change(so.reference_po, :state) | |
undefined method `state' for nil:NilClass | |
# ./spec/models/sales_order_spec.rb:461:in `block (4 levels) in <top (required)>' | |
1067/1067: 100% |==========================================| Time: 00:05:24 | |
Pending: | |
SharedMailer add some examples to (or delete) /Volumes/Calvin/Users/bmishkin/develop/countrystone/spec/mailers/shared_mailer_spec.rb | |
# Not Yet Implemented | |
# ./spec/mailers/shared_mailer_spec.rb:4 | |
ShouldReverseAccountPostings after_destroy .rollback_accounting should reverse any credits/debits applied to sales order transactions | |
# No reason given | |
# ./spec/mixins/should_reverse_account_postings_spec.rb:38 | |
AccountPosting instance functions .bank_account_related? should return true if a posting is for a checking account | |
# No reason given | |
# ./spec/models/account_posting_spec.rb:88 | |
CashSale.create_transactions accounting should have equal debits and credits when delivery price added | |
# Until this is implemented | |
# ./spec/models/cash_sale_spec.rb:132 | |
EdiInboundOrderItem add some examples to (or delete) /Volumes/Calvin/Users/bmishkin/develop/countrystone/spec/models/edi_inbound_order_item_spec.rb | |
# Not Yet Implemented | |
# ./spec/models/edi_inbound_order_item_spec.rb:22 | |
EdiInboundOrder add some examples to (or delete) /Volumes/Calvin/Users/bmishkin/develop/countrystone/spec/models/edi_inbound_order_spec.rb | |
# Not Yet Implemented | |
# ./spec/models/edi_inbound_order_spec.rb:4 | |
ImportCompId add some examples to (or delete) /Volumes/Calvin/Users/bmishkin/develop/countrystone/spec/models/import_comp_id_spec.rb | |
# Not Yet Implemented | |
# ./spec/models/import_comp_id_spec.rb:16 | |
IncomingPayment instance methods single customer per payment logic has_single_customer? should return false if the payment is received from a non-default customer location & the receivable customer locations don't match | |
# this method was trying to do too much | |
# ./spec/models/incoming_payment_spec.rb:150 | |
InventoryProduction callbacks should be/not_be able to destroy if :in_process | |
# No reason given | |
# ./spec/models/inventory_production_spec.rb:212 | |
OutgoingPayment class methods #mass_print_checks should create a temporary PDF file | |
# refactoring | |
# ./spec/models/outgoing_payment_spec.rb:87 | |
PayablePayment validations should only allow a single vendor per payment | |
# No reason given | |
# ./spec/models/payable_payment_spec.rb:37 | |
PrintRecord add some examples to (or delete) /Volumes/Calvin/Users/bmishkin/develop/countrystone/spec/models/print_record_spec.rb | |
# Not Yet Implemented | |
# ./spec/models/print_record_spec.rb:16 | |
PrintedCheck .dollar_amount should only return the dollar amount | |
# No reason given | |
# ./spec/models/printed_check_spec.rb:26 | |
PrintedCheck .cent_amount should only return the (rounded) cent amount | |
# No reason given | |
# ./spec/models/printed_check_spec.rb:30 | |
PrintedCheck .amount_in_text should return a text representation of a number | |
# No reason given | |
# ./spec/models/printed_check_spec.rb:35 | |
PrintedCheck .total_amount_in_text should include a decimal representation of cents prefixed by 'and' (ex: and 10/100) | |
# No reason given | |
# ./spec/models/printed_check_spec.rb:42 | |
PrintedCheck .check_date should return today's date if it's a first time print | |
# No reason given | |
# ./spec/models/printed_check_spec.rb:46 | |
PrintedCheck .check_date should return the check_printed_at if the check has been printed before | |
# No reason given | |
# ./spec/models/printed_check_spec.rb:50 | |
PrintedCheck .friendly_check_date should return the check_date in a friendly format | |
# No reason given | |
# ./spec/models/printed_check_spec.rb:56 | |
PrintedCheck .micr_check_number should return the check number surrounded by 'C' characters | |
# No reason given | |
# ./spec/models/printed_check_spec.rb:60 | |
Reconciliation class methods #account_postings should return unreconciled account postings with optional date range & bank account | |
# No reason given | |
# ./spec/models/reconciliation_spec.rb:51 | |
SalesOrderItem class methods #get_customer_zone_unit_price should the price for an item + customer + date | |
# WIP | |
# ./spec/models/sales_order_item_spec.rb:104 | |
SalesOrder instance methods.build_transactions accounting for corporation buying from plant (internal sale) should increase corporation's Accounts Payable account for the internal order amount | |
# No reason given | |
# ./spec/models/sales_order_spec.rb:624 | |
SalesOrder instance methods.build_transactions accounting for corporation buying from plant (internal sale) should increase selling plant's Accounts Receivable account for the internal order amount | |
# No reason given | |
# ./spec/models/sales_order_spec.rb:628 | |
SalesOrder instance methods.build_transactions accounting for corporation buying from plant (internal sale) should increase corporation's Income account for the item's internal sale net cost | |
# No reason given | |
# ./spec/models/sales_order_spec.rb:632 | |
SalesOrder instance methods.build_transactions accounting for corporation buying from plant (internal sale) should descrease selling plant's finished goods account for the item's cos amount | |
# No reason given | |
# ./spec/models/sales_order_spec.rb:638 | |
SalesOrder instance methods.build_transactions accounting for corporation buying from plant (internal sale) should increase selling plant's cos account for the item's cos amount | |
# No reason given | |
# ./spec/models/sales_order_spec.rb:644 | |
SalesOrder instance methods.build_transactions accounting for corporation buying from plant (internal sale) should increase selling plant's cos account for the item's cos amount | |
# No reason given | |
# ./spec/models/sales_order_spec.rb:650 | |
SalesOrder instance methods.build_transactions accounting for corporation selling to customer (external sale) should increase corporation's Accounts Receivable account for the order amount | |
# No reason given | |
# ./spec/models/sales_order_spec.rb:658 | |
SalesOrder instance methods.build_transactions accounting for corporation selling to customer (external sale) should increase corporation's Sales Tax Payable account for the tax amount | |
# No reason given | |
# ./spec/models/sales_order_spec.rb:662 | |
SalesOrder instance methods.build_transactions accounting for corporation selling to customer (external sale) should increase corporation's Discounts account for the discounted amount | |
# No reason given | |
# ./spec/models/sales_order_spec.rb:666 | |
SalesOrder instance methods.build_transactions accounting for corporation selling to customer (external sale) should increase each inventory item's Income Account by the total line amount | |
# No reason given | |
# ./spec/models/sales_order_spec.rb:670 | |
SalesOrder instance methods.build_transactions accounting for corporation selling to customer (external sale) should decrease each inventory item's Finished Goods Account by the cos amount | |
# No reason given | |
# ./spec/models/sales_order_spec.rb:676 | |
SalesOrder instance methods.build_transactions accounting for corporation selling to customer (external sale) should increase each inventory item's Cost of Sale Account by the total cos amount | |
# No reason given | |
# ./spec/models/sales_order_spec.rb:682 | |
Trucker add some examples to (or delete) /Volumes/Calvin/Users/bmishkin/develop/countrystone/spec/models/trucker_spec.rb | |
# Not Yet Implemented | |
# ./spec/models/trucker_spec.rb:17 | |
Finished in 324.96 seconds | |
1067 examples, 12 failures, 35 pending | |
rspec-rcov kung-fu complete. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment