Skip to content

Instantly share code, notes, and snippets.

View bmishkin's full-sized avatar
🎯
Focusing

Ben Mishkin bmishkin

🎯
Focusing
  • Anthem.AI
  • Austin, TX
View GitHub Profile
@bmishkin
bmishkin / gist:1206651
Created September 9, 2011 16:20
CS - cucumber
Using the default profile...
cleaning out the test database....
Seeding some basic person and roles data....
Seeding account types...
1)
Validation failed: Order date can't be blank (ActiveRecord::RecordInvalid)
./features/step_definitions/sales_order_steps.rb:12:in `block (2 levels) in <top (required)>'
./features/step_definitions/sales_order_steps.rb:2:in `each'
./features/step_definitions/sales_order_steps.rb:2:in `/^these sales orders:$/'
@bmishkin
bmishkin / gist:1206655
Created September 9, 2011 16:21
CS - rspecs
Calvin-imac:countrystone $ rspec spec
No DRb server is running. Running in local process instead ...
cleaning out account types
Seeding account types...
1) CustomerLocation validations
Failure/Error: it {Factory(:customer_location).should validate_uniqueness_of(:name).scoped_to([:customer_id])}
Expected errors to include "has already been taken" when name is set to "[DEFAULT] LNJPDS", got no errors
# ./spec/models/customer_location_spec.rb:47:in `block (3 levels) in <top (required)>'
@bmishkin
bmishkin / gist:1251100
Created September 29, 2011 16:04
failing rspecs
1) IncomingPayment callbacks accounting transaction should include 8 postings if the payment contains both late and early orders
Failure/Error: expect { @ip.save! }.to change(@ip.account_postings, :count).by(8)
Validation failed: Account postings amount must be greater than or equal to 0
# ./app/models/incoming_payment.rb:108:in `create_transaction'
# ./spec/models/incoming_payment_spec.rb:99:in `block (5 levels) in <top (required)>'
# ./spec/models/incoming_payment_spec.rb:99:in `block (4 levels) in <top (required)>'
/usr/local/bin/gs -dNOPAUSE -dBATCH -dQUIET -dNOPAGEPROMPT -I/Users/bmishkin/.rvm/gems/ruby-1.9.2-p136@rails3-countrystone-erp/gems/rghost-0.8.7.5/lib/rghost/ps -I/Users/bmishkin/.rvm/gems/ruby-1.9.2-p136@rails3-countrystone-erp/gems/rghost_barcode-0.8/lib/rghost_barcode/ps -sDEVICE=pdfwrite -sstdout=/tmp/checks_09-29-2011.pdf.rgerr -sOutputFile=/tmp/checks_09-29-2011.pdf -dDEVICEWIDTHPOINTS=842 -dDEVICEHEIGHTPOINTS=597 /tmp/checks_09-29-2011.pdf.rgin
@bmishkin
bmishkin / gist:1251151
Created September 29, 2011 16:22
failing cukes
Calvin-imac:countrystone $ cucumber features
Using the default profile...
cleaning out the test database....
Seeding some basic person and roles data....
Seeding account types...
1)
Unable to find 'li a:contains('InvItem2')' (Capybara::ElementNotFound)
./features/step_definitions/web_extended_steps.rb:40:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:14:in `with_scope'
@bmishkin
bmishkin / gist:1254190
Created September 30, 2011 15:53
rotten cukes
Using the default profile...
cleaning out the test database....
Seeding some basic person and roles data....
Seeding account types...
1)
expected false to be true (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/table_steps.rb:23:in `/^I should( not)? see the following table rows?( in any order)?:?$/'
features/manage_demand_report.feature:18:in `Then I should see the following table rows in any order:'
@bmishkin
bmishkin / cukes.feature
Created October 10, 2011 20:44
countrystone tests
Hobbes-iMac:countrystone $ cucumber features
Using the default profile...
cleaning out the test database....
Seeding some basic person and roles data....
Seeding account types...
1)
expected false to be true (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/table_steps.rb:23:in `/^I should( not)? see the following table rows?( in any order)?:?$/'
features/manage_demand_report.feature:18:in `Then I should see the following table rows in any order:'
@bmishkin
bmishkin / cukes.feature
Created October 11, 2011 13:44
countrystone tests
Hobbes-iMac:countrystone $ cucumber features
Using the default profile...
cleaning out the test database....
Seeding some basic person and roles data....
Seeding account types...
1)
expected false to be true (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/table_steps.rb:23:in `/^I should( not)? see the following table rows?( in any order)?:?$/'
features/manage_demand_report.feature:18:in `Then I should see the following table rows in any order:'
@bmishkin
bmishkin / gist:1281719
Created October 12, 2011 16:25
countrystone rspecs
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)>'
@bmishkin
bmishkin / gist:1281797
Created October 12, 2011 16:50
costone cukes
Hobbes-iMac:countrystone $ cucumber features
Using the default profile...
cleaning out the test database....
Seeding some basic person and roles data....
Seeding account types...
1)
Unable to find 'li a:contains('InvItem2')' (Capybara::ElementNotFound)
./features/step_definitions/web_extended_steps.rb:40:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:14:in `with_scope'
@bmishkin
bmishkin / gist:1284937
Created October 13, 2011 17:53
countryscukes
Hobbes-iMac:countrystone $ cucumber features
Using the default profile...
cleaning out the test database....
Seeding some basic person and roles data....
Seeding account types...
1)
Element is not currently visible and so may not be interacted with (Selenium::WebDriver::Error::ElementNotDisplayedError)
[remote server] resource://fxdriver/modules/atoms.js:9280:in `'
[remote server] file:///var/folders/rr/352wgbw55pl2zznq_bn9yg2w0000gn/T/webdriver-profile20111013-65690-12v5jou/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:249:in `'