Skip to content

Instantly share code, notes, and snippets.

@bmishkin
Created October 13, 2011 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bmishkin/1285295 to your computer and use it in GitHub Desktop.
Save bmishkin/1285295 to your computer and use it in GitHub Desktop.
country stone rails 3.0.10 specs
Hobbes-iMac:countrystone $ rspec spec
No DRb server is running. Running in local process instead ...
cleaning out account types
Seeding account types...
1) SalesOrder instance methods .on_time? should return true if payment_date is neither late nor early
Failure/Error: so.on_time?(Date.today).should == true
expected: true
got: false (using ==)
# ./spec/models/sales_order_spec.rb:505:in `block (3 levels) in <top (required)>'
1069/1069: 100% |==========================================| Time: 00:03:40
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 220.63 seconds
1069 examples, 1 failure, 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