Skip to content

Instantly share code, notes, and snippets.

@bmishkin
Created October 11, 2011 13:44
Show Gist options
  • Save bmishkin/1278112 to your computer and use it in GitHub Desktop.
Save bmishkin/1278112 to your computer and use it in GitHub Desktop.
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:'
2)
scope '.inventory_production_row' not found on page (Capybara::ElementNotFound)
./features/step_definitions/web_steps.rb:14:in `with_scope'
./features/step_definitions/web_steps.rb:34:in `/^(?:|I )follow "([^"]*)"(?: within "([^"]*)")?$/'
features/manage_down_time_reasons.feature:46:in `And I follow "Find" within ".inventory_production_row"'
3)
cannot select option, no option with text 'Cheese' in select box 'inventory_adjustment[unapproved_inventory_postings_attributes][0][plant_id]' (Capybara::ElementNotFound)
./features/step_definitions/web_steps.rb:83:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:14:in `with_scope'
./features/step_definitions/web_steps.rb:82:in `/^(?:|I )select "([^"]*)" from "([^"]*)"(?: within "([^"]*)")?$/'
features/manage_inventory_adjustments.feature:53:in `Given I submit an unapproved inventory adjustment for 35 "bricks" at plant "Cheese"'
4)
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-profile20111011-12752-ml8zd/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:249:in `'
[remote server] file:///var/folders/rr/352wgbw55pl2zznq_bn9yg2w0000gn/T/webdriver-profile20111011-12752-ml8zd/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:298:in `'
[remote server] file:///var/folders/rr/352wgbw55pl2zznq_bn9yg2w0000gn/T/webdriver-profile20111011-12752-ml8zd/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:313:in `'
[remote server] file:///var/folders/rr/352wgbw55pl2zznq_bn9yg2w0000gn/T/webdriver-profile20111011-12752-ml8zd/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:190:in `'
./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'
./features/step_definitions/web_extended_steps.rb:39:in `/^I select the option containing "([^\"]*)" from "([^\"]*)" autocomplete$/'
features/manage_journal_adjustments.feature:33:in `And I select the option containing "1 - Main" from "transaction_account_postings_attributes_1_plant_id" autocomplete'
5)
Unable to find '#<XPath::Union:0x007ff36fa0dbf0>' (Capybara::ElementNotFound)
./features/step_definitions/web_extended_steps.rb:36:in `/^I select the option containing "([^\"]*)" from "([^\"]*)" autocomplete$/'
features/manage_journal_adjustments.feature:53:in `And I select the option containing "1 - Main" from "transaction_account_postings_attributes_1_plant_id" autocomplete'
6)
Unable to find '#<XPath::Union:0x007ff36f9ed260>' (Capybara::ElementNotFound)
./features/step_definitions/web_extended_steps.rb:36:in `/^I select the option containing "([^\"]*)" from "([^\"]*)" autocomplete$/'
features/manage_labels.feature:29:in `And I submit an uncommitted production for item "twinkies" at plant "hostess" on line number "77"'
/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_10-11-2011.pdf.rgerr -sOutputFile=/tmp/checks_10-11-2011.pdf -dDEVICEWIDTHPOINTS=842 -dDEVICEHEIGHTPOINTS=597 /tmp/checks_10-11-2011.pdf.rgin
7)
expected: 2
got: 0 (using ==) (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_extended_steps.rb:15:in `/^I should see field "(.+)" (\d+) times?$/'
features/manage_packagings.feature:33:in `Then I should see field "select.activator" 2 times'
8)
cannot fill in, no text field, text area or password field with id, name, or label 'auto_packaging_components_attributes_3_inventory_item_id' found (Capybara::ElementNotFound)
./features/step_definitions/web_extended_steps.rb:38:in `/^I select the option containing "([^\"]*)" from "([^\"]*)" autocomplete$/'
features/manage_packagings.feature:37:in `And I select the option containing "2 - wrap" from "packaging[components_attributes][3][inventory_item_id]" autocomplete'
9)
expected #has_content?("$288.40") to return true, got false (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:121:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:14:in `block in with_scope'
./features/step_definitions/web_steps.rb:14:in `with_scope'
./features/step_definitions/web_steps.rb:119:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/manage_plant_account_balance_reports.feature:22:in `Then I should see "$288.40" within ".account_cheese .account_current_balance"'
10)
expected #has_content?("$291.00") to return true, got false (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:121:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:14:in `block in with_scope'
./features/step_definitions/web_steps.rb:14:in `with_scope'
./features/step_definitions/web_steps.rb:119:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/manage_plant_account_balance_reports.feature:30:in `Then I should see "$291.00" within ".account_cheese .account_current_balance"'
11)
expected #has_content?("$291.00") to return true, got false (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:121:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:14:in `block in with_scope'
./features/step_definitions/web_steps.rb:14:in `with_scope'
./features/step_definitions/web_steps.rb:119:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/manage_plant_account_balance_reports.feature:39:in `Then I should see "$291.00" within ".account_cheese .account_current_balance"'
12)
scope '.account_cheese .plant_kenny' not found on page (Capybara::ElementNotFound)
./features/step_definitions/web_steps.rb:14:in `with_scope'
./features/step_definitions/web_steps.rb:119:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/manage_plant_account_balance_reports.feature:46:in `Then I should see "$291.00" within ".account_cheese .plant_kenny"'
13)
scope '.account_cheese .plant_kenny' not found on page (Capybara::ElementNotFound)
./features/step_definitions/web_steps.rb:14:in `with_scope'
./features/step_definitions/web_steps.rb:119:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/manage_plant_account_balance_reports.feature:56:in `Then I should see "$291.00" within ".account_cheese .plant_kenny"'
14)
expected #has_content?("$224.65") to return true, got false (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:121:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:14:in `block in with_scope'
./features/step_definitions/web_steps.rb:14:in `with_scope'
./features/step_definitions/web_steps.rb:119:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/manage_plant_account_income_reports.feature:26:in `Then I should see "$224.65" within ".account_vanilla .account_current_balance"'
15)
expected #has_content?("$222.15") to return true, got false (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:121:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:14:in `block in with_scope'
./features/step_definitions/web_steps.rb:14:in `with_scope'
./features/step_definitions/web_steps.rb:119:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/manage_plant_account_income_reports.feature:34:in `Then I should see "$222.15" within ".account_vanilla .account_current_balance"'
16)
expected #has_content?("$222.15") to return true, got false (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:121:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:14:in `block in with_scope'
./features/step_definitions/web_steps.rb:14:in `with_scope'
./features/step_definitions/web_steps.rb:119:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/manage_plant_account_income_reports.feature:43:in `Then I should see "$222.15" within ".account_vanilla .account_current_balance"'
17)
scope '.account_vanilla .plant_tom' not found on page (Capybara::ElementNotFound)
./features/step_definitions/web_steps.rb:14:in `with_scope'
./features/step_definitions/web_steps.rb:119:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/manage_plant_account_income_reports.feature:50:in `Then I should see "$222.15" within ".account_vanilla .plant_tom"'
18)
scope '.account_vanilla .plant_tom' not found on page (Capybara::ElementNotFound)
./features/step_definitions/web_steps.rb:14:in `with_scope'
./features/step_definitions/web_steps.rb:119:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/manage_plant_account_income_reports.feature:60:in `Then I should see "$222.15" within ".account_vanilla .plant_tom"'
19)
no link with title, id or text 'Confirm' found (Capybara::ElementNotFound)
./features/step_definitions/web_steps.rb:35:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:14:in `with_scope'
./features/step_definitions/web_steps.rb:34:in `/^(?:|I )follow "([^"]*)"(?: within "([^"]*)")?$/'
features/manage_production_variance.feature:13:in `And I follow "Confirm"'
20)
Unable to find 'li a:contains('InvItem1')' (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'
./features/step_definitions/web_extended_steps.rb:39:in `/^I select the option containing "([^\"]*)" from "([^\"]*)" autocomplete$/'
features/manage_purchase_orders.feature:81:in `And I select the option containing "InvItem1" from "inventory_item_id[0]" autocomplete'
21)
expected #has_content?("InvItem1") to return true, got false (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:121:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:14:in `with_scope'
./features/step_definitions/web_steps.rb:119:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/manage_purchase_orders.feature:105:in `And I should see "InvItem1"'
22)
Timeout::Error (Timeout::Error)
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/protocol.rb:140:in `rescue in rbuf_fill'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/protocol.rb:134:in `rbuf_fill'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/protocol.rb:116:in `readuntil'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/protocol.rb:126:in `readline'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:2211:in `read_status_line'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:2200:in `read_new'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:1183:in `transport_request'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:1169:in `request'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:1162:in `block in request'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:627:in `start'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:1160:in `request'
./features/step_definitions/web_steps.rb:29:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:14:in `with_scope'
./features/step_definitions/web_steps.rb:28:in `/^(?:|I )press "([^"]*)"(?: within "([^"]*)")?$/'
features/manage_receive_payments.feature:24:in `And I press "Set Filter"'
23)
Timeout::Error (Timeout::Error)
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/protocol.rb:140:in `rescue in rbuf_fill'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/protocol.rb:134:in `rbuf_fill'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/protocol.rb:116:in `readuntil'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/protocol.rb:126:in `readline'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:2211:in `read_status_line'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:2200:in `read_new'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:1183:in `transport_request'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:1169:in `request'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:1162:in `block in request'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:627:in `start'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:1160:in `request'
./features/step_definitions/web_steps.rb:29:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:14:in `with_scope'
./features/step_definitions/web_steps.rb:28:in `/^(?:|I )press "([^"]*)"(?: within "([^"]*)")?$/'
features/manage_receive_payments.feature:37:in `And I press "Set Filter"'
24)
expected #has_content?("8888") to return true, got false (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:121:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:14:in `with_scope'
./features/step_definitions/web_steps.rb:119:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/'
features/manage_receive_payments.feature:53:in `Then I should see "8888"'
25)
Timeout::Error (Timeout::Error)
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/protocol.rb:140:in `rescue in rbuf_fill'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/protocol.rb:134:in `rbuf_fill'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/protocol.rb:116:in `readuntil'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/protocol.rb:126:in `readline'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:2211:in `read_status_line'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:2200:in `read_new'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:1183:in `transport_request'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:1169:in `request'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:1162:in `block in request'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:627:in `start'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:1160:in `request'
./features/step_definitions/web_steps.rb:29:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:14:in `with_scope'
./features/step_definitions/web_steps.rb:28:in `/^(?:|I )press "([^"]*)"(?: within "([^"]*)")?$/'
features/manage_receive_payments.feature:63:in `And I press "Set Filter"'
26)
Timeout::Error (Timeout::Error)
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/protocol.rb:140:in `rescue in rbuf_fill'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/protocol.rb:134:in `rbuf_fill'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/protocol.rb:116:in `readuntil'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/protocol.rb:126:in `readline'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:2211:in `read_status_line'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:2200:in `read_new'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:1183:in `transport_request'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:1169:in `request'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:1162:in `block in request'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:627:in `start'
/Users/bmishkin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:1160:in `request'
./features/step_definitions/web_steps.rb:29:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:14:in `with_scope'
./features/step_definitions/web_steps.rb:28:in `/^(?:|I )press "([^"]*)"(?: within "([^"]*)")?$/'
features/manage_receive_payments.feature:75:in `And I press "Set Filter"'
27)
Unable to find 'li a:contains('WeBuild')' (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'
./features/step_definitions/web_extended_steps.rb:39:in `/^I select the option containing "([^\"]*)" from "([^\"]*)" autocomplete$/'
features/manage_receive_payments.feature:90:in `And I select the option containing "WeBuild" from "Plant" autocomplete'
28)
Undefined step: "an outgoing payment for $3000 at bank account "CashIsKing" with memo "Payment sent!"" (Cucumber::Undefined)
features/manage_reconciliations.feature:11:in `And an outgoing payment for $3000 at bank account "CashIsKing" with memo "Payment sent!"'
29)
Undefined step: "an outgoing payment for $3000 at bank account "CashIsKing" with memo "Payment sent!"" (Cucumber::Undefined)
features/manage_reconciliations.feature:11:in `And an outgoing payment for $3000 at bank account "CashIsKing" with memo "Payment sent!"'
30)
Undefined step: "an outgoing payment for $3000 at bank account "CashIsKing" with memo "Payment sent!"" (Cucumber::Undefined)
features/manage_reconciliations.feature:11:in `And an outgoing payment for $3000 at bank account "CashIsKing" with memo "Payment sent!"'
31)
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-profile20111011-12752-ml8zd/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:249:in `'
[remote server] file:///var/folders/rr/352wgbw55pl2zznq_bn9yg2w0000gn/T/webdriver-profile20111011-12752-ml8zd/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:298:in `'
[remote server] file:///var/folders/rr/352wgbw55pl2zznq_bn9yg2w0000gn/T/webdriver-profile20111011-12752-ml8zd/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:313:in `'
[remote server] file:///var/folders/rr/352wgbw55pl2zznq_bn9yg2w0000gn/T/webdriver-profile20111011-12752-ml8zd/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:190:in `'
./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'
./features/step_definitions/web_extended_steps.rb:39:in `/^I select the option containing "([^\"]*)" from "([^\"]*)" autocomplete$/'
features/manage_recurring_journal_adjustments.feature:21:in `And I select the option containing "1 - Main" from "transaction_account_postings_attributes_1_plant_id" autocomplete'
32)
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-profile20111011-12752-ml8zd/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:249:in `'
[remote server] file:///var/folders/rr/352wgbw55pl2zznq_bn9yg2w0000gn/T/webdriver-profile20111011-12752-ml8zd/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:298:in `'
[remote server] file:///var/folders/rr/352wgbw55pl2zznq_bn9yg2w0000gn/T/webdriver-profile20111011-12752-ml8zd/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:313:in `'
[remote server] file:///var/folders/rr/352wgbw55pl2zznq_bn9yg2w0000gn/T/webdriver-profile20111011-12752-ml8zd/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:190:in `'
./features/step_definitions/web_steps.rb:83:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:14:in `with_scope'
./features/step_definitions/web_steps.rb:82:in `/^(?:|I )select "([^"]*)" from "([^"]*)"(?: within "([^"]*)")?$/'
features/manage_session_transaction_logs.feature:20:in `When I literally create a random journal adjustment at corporation "Gooser"'
33)
Validation failed: Name has already been taken (ActiveRecord::RecordInvalid)
./features/step_definitions/person_steps.rb:20:in `/^a person "([^"]*)" with password "([^"]*)" and full name "([^"]*)"$/'
features/tracks_person.feature:6:in `Given a person "whodunnit@whodidit.com" with password "testme" and full name "Whodun It"'
3679/3930: 100% |==========================================| Time: 00:20:00
Failing Scenarios:
cucumber features/manage_demand_report.feature:16 # Scenario: Basic report data
cucumber features/manage_down_time_reasons.feature:42 # Scenario: Fail to destroy a down time reason
cucumber features/manage_inventory_adjustments.feature:52 # Scenario: Approve an Inventory Adjustment
cucumber features/manage_journal_adjustments.feature:24 # Scenario: Create a valid Journal Adjustment
cucumber features/manage_journal_adjustments.feature:43 # Scenario: When credits and debits are unequal, cannot submit a valid journal entry.
cucumber features/manage_labels.feature:17 # Scenario: Create a label on produced goods
cucumber features/manage_packagings.feature:30 # Scenario: Adding a component gives another blank one
cucumber features/manage_packagings.feature:35 # Scenario: Adding a component to a package
cucumber features/manage_plant_account_balance_reports.feature:20 # Scenario: Current Balance (combined) should work
cucumber features/manage_plant_account_balance_reports.feature:26 # Scenario: Current Balance (combined) for a single plant should work
cucumber features/manage_plant_account_balance_reports.feature:34 # Scenario: Y/Y (combined) should work
cucumber features/manage_plant_account_balance_reports.feature:42 # Scenario: Current Balance (compared) should work
cucumber features/manage_plant_account_balance_reports.feature:51 # Scenario: Y/Y (compared) should work
cucumber features/manage_plant_account_income_reports.feature:24 # Scenario: Current Income Statement (combined) should work
cucumber features/manage_plant_account_income_reports.feature:30 # Scenario: Current Balance (combined) for a single plant should work
cucumber features/manage_plant_account_income_reports.feature:38 # Scenario: Y/Y (combined) should work
cucumber features/manage_plant_account_income_reports.feature:46 # Scenario: Current Balance (compared) should work
cucumber features/manage_plant_account_income_reports.feature:55 # Scenario: Y/Y (compared) should work
cucumber features/manage_production_variance.feature:15 # Scenario: View a zero variance report on the index page
cucumber features/manage_purchase_orders.feature:70 # Scenario: Create a purchase order
cucumber features/manage_purchase_orders.feature:93 # Scenario: Edit a purchase order
cucumber features/manage_receive_payments.feature:19 # Scenario: Receive payment filters (sales order filter test)
cucumber features/manage_receive_payments.feature:31 # Scenario: Receive payment filters (only show invoiced sales orders)
cucumber features/manage_receive_payments.feature:44 # Scenario: Receive payment filters (customer with default loc selected should all customer orders)
cucumber features/manage_receive_payments.feature:57 # Scenario: Pre-select default customer bank account
cucumber features/manage_receive_payments.feature:68 # Scenario: Show terms adjusted balances
cucumber features/manage_receive_payments.feature:85 # Scenario: Create a received payment
cucumber features/manage_recurring_journal_adjustments.feature:12 # Scenario: Create a journal adjustment and save as recurring
cucumber features/manage_session_transaction_logs.feature:17 # Scenario: View my own transaction in the log
cucumber features/tracks_person.feature:14 # Scenario: Person tracked when creating a purchase order
346 scenarios (30 failed, 8 skipped, 1 undefined, 10 pending, 297 passed)
3937 steps (30 failed, 251 skipped, 3 undefined, 10 pending, 3643 passed)
20m0.257s
You can implement step definitions for undefined steps with these snippets:
Given /^an outgoing payment for \$(\d+) at bank account "([^"]*)" with memo "([^"]*)"$/ do |arg1, arg2, arg3|
pending # express the regexp above with the code you wish you had
end
Hobbes-iMac:countrystone $
Hobbes-iMac:countrystone $ rspec spec
No DRb server is running. Running in local process instead ...
cleaning out account types
Seeding account types...
1) IntraOrder validations
Failure/Error: it {should validate_presence_of(:buying_plant_payment_account_type_id)}
Expected errors to include "can't be blank" when buying_plant_payment_account_type_id is set to nil, got errors: ["buying_plant_id can't be blank (nil)", "selling_plant_id can't be blank (nil)", "intra_order_items can't be blank ([])"]
# ./spec/models/intra_order_spec.rb:48:in `block (3 levels) in <top (required)>'
2) 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:98:in `block (3 levels) in <top (required)>'
3) 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
comparison of Fixnum with String failed
# ./app/mixins/pdf_printer/print_labels.rb:108:in `formatted_description'
# ./app/mixins/pdf_printer/print_labels.rb:57: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)>'
4) Label callback methods should generate a label PDF after save
Failure/Error: lb.save!
comparison of Fixnum with String failed
# ./app/mixins/pdf_printer/print_labels.rb:108:in `formatted_description'
# ./app/mixins/pdf_printer/print_labels.rb:57:in `generate_file!'
# ./spec/models/label_spec.rb:63:in `block (3 levels) in <top (required)>'
5) 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)>'
6) 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)>'
7) 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:7fd60542f170,'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)>'
8) 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)>'
9) 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)>'
10) 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:835: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)>'
11) 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:856: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)>'
12) 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:879: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)>'
13) 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)>'
1070/1070: 100% |==========================================| Time: 00:05:21
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:162
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 321.91 seconds
1070 examples, 13 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