Created
February 5, 2014 15:57
-
-
Save macool/b92489f690b9c404e534 to your computer and use it in GitHub Desktop.
failing specs
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
Pending: | |
GoogleAccessToken add some examples to (or delete) /Users/macool/Documents/development/TrussellTrust/FoodbankWeb/spec/models/google_access_token_spec.rb | |
# No reason given | |
# ./spec/models/google_access_token_spec.rb:4 | |
Failures: | |
1) Donor should correctly summaries donations by event for a foodbank in a defined date range | |
Failure/Error: result = Donor.find_donation_weight_by_event_for_foodbank_in_date_range(FoodbankProject.first.id, start_date, end_date) | |
NoMethodError: | |
undefined method `id' for 1:Fixnum | |
# ./app/models/donor.rb:152:in `find_donation_weight_by_event_for_foodbank_in_date_range' | |
# ./spec/models/donor_spec.rb:51:in `block (2 levels) in <top (required)>' | |
2) Emails emails for a project manager should have a Change Password link for an email | |
Failure/Error: email = FactoryGirl.create(:email, :foodbank_project_id => foodbank.id) | |
ActiveRecord::RecordInvalid: | |
Validation failed: Domain can't be blank, Last name can't be blank, First name can't be blank | |
# ./spec/features/emails_spec.rb:41:in `block (3 levels) in <top (required)>' | |
3) Emails emails for a project manager should show a login link for each email | |
Failure/Error: email = FactoryGirl.create(:email, :foodbank_project_id => foodbank.id) | |
ActiveRecord::RecordInvalid: | |
Validation failed: Domain can't be blank, Last name can't be blank, First name can't be blank | |
# ./spec/features/emails_spec.rb:30:in `block (3 levels) in <top (required)>' | |
4) Emails emails for a project manager should show a list of emails for the foodbank | |
Failure/Error: email = FactoryGirl.create(:email, :foodbank_project_id => foodbank.id) | |
ActiveRecord::RecordInvalid: | |
Validation failed: Domain can't be blank, Last name can't be blank, First name can't be blank | |
# ./spec/features/emails_spec.rb:19:in `block (3 levels) in <top (required)>' | |
5) Emails emails for a project manager should show a no emails message when there are no emails | |
Failure/Error: login_user(user) | |
Capybara::ElementNotFound: | |
Unable to find field "Username" | |
# ./spec/support/request_macros.rb:11:in `login_user' | |
# ./spec/features/emails_spec.rb:9:in `block (3 levels) in <top (required)>' | |
6) Announcements displays active announcements | |
Failure/Error: click_on "hide announcement" | |
Capybara::ElementNotFound: | |
Unable to find link or button "hide announcement" | |
# ./spec/features/announcements_spec.rb:17:in `block (2 levels) in <top (required)>' | |
7) Announcements stays on page when clicking hide announcement link using javascript | |
Failure/Error: visit dashboard_path | |
VCR::Errors::UnhandledHTTPRequestError: | |
================================================================================ | |
An HTTP request has been made that VCR does not know how to handle: | |
GET http://127.0.0.1:8200/__identify__ | |
There is currently no cassette in use. There are a few ways | |
you can configure VCR to handle this request: | |
* If you're surprised VCR is raising this error | |
and want insight about how VCR attempted to handle the request, | |
you can use the debug_logger configuration option to log more details [1]. | |
* If you want VCR to record this request and play it back during future test | |
runs, you should wrap your test (or this portion of your test) in a | |
`VCR.use_cassette` block [2]. | |
* If you only want VCR to handle requests made while a cassette is in use, | |
configure `allow_http_connections_when_no_cassette = true`. VCR will | |
ignore this request since it is made when there is no cassette [3]. | |
* If you want VCR to ignore this request (and others like it), you can | |
set an `ignore_request` callback [4]. | |
[1] https://www.relishapp.com/vcr/vcr/v/2-8-0/docs/configuration/debug-logging | |
[2] https://www.relishapp.com/vcr/vcr/v/2-8-0/docs/getting-started | |
[3] https://www.relishapp.com/vcr/vcr/v/2-8-0/docs/configuration/allow-http-connections-when-no-cassette | |
[4] https://www.relishapp.com/vcr/vcr/v/2-8-0/docs/configuration/ignore-request | |
================================================================================ | |
# ./spec/features/announcements_spec.rb:28:in `block (2 levels) in <top (required)>' | |
8) Regions GET /regions should show create new regions when there are no regions defined | |
Failure/Error: login_network_manager | |
Capybara::ElementNotFound: | |
Unable to find field "Username" | |
# ./spec/support/request_macros.rb:11:in `login_user' | |
# ./spec/support/request_macros.rb:6:in `login_network_manager' | |
# ./spec/features/regions_spec.rb:6:in `block (3 levels) in <top (required)>' | |
9) FoodbankProject should not create duplicate dnsrecords | |
Failure/Error: project.dns_records.count.should == 1 | |
expected: 1 | |
got: 2 (using ==) | |
# ./spec/models/foodbank_project_spec.rb:40:in `block (2 levels) in <top (required)>' | |
10) FoodbankProject should not create more dns when name is the same | |
Failure/Error: project.dns_records.count.should == 1 | |
expected: 1 | |
got: 2 (using ==) | |
# ./spec/models/foodbank_project_spec.rb:30:in `block (2 levels) in <top (required)>' | |
11) FoodbankProject creates more dns records on name change | |
Failure/Error: project.dns_records.count.should == 1 | |
expected: 1 | |
got: 2 (using ==) | |
# ./spec/models/foodbank_project_spec.rb:18:in `block (2 levels) in <top (required)>' | |
12) FoodbankProject creates dns record for the public website | |
Failure/Error: project.dns_records.count.should == 1 | |
expected: 1 | |
got: 2 (using ==) | |
# ./spec/models/foodbank_project_spec.rb:8:in `block (2 levels) in <top (required)>' | |
13) FamilySize should correctly calculate single family type | |
Failure/Error: FamilySize.calculate_for_voucher(voucher).name.should == "Single" | |
expected: "Single" | |
got: nil (using ==) | |
# ./spec/models/family_size_spec.rb:11:in `block (2 levels) in <top (required)>' | |
14) FamilySize should correctly calculate single parent family type | |
Failure/Error: FamilySize.calculate_for_voucher(voucher).name.should == "Single Parent" | |
expected: "Single Parent" | |
got: nil (using ==) | |
# ./spec/models/family_size_spec.rb:20:in `block (2 levels) in <top (required)>' | |
15) FamilySize should correctly calculate family family type | |
Failure/Error: FamilySize.calculate_for_voucher(voucher).name.should == "Family" | |
expected: "Family" | |
got: nil (using ==) | |
# ./spec/models/family_size_spec.rb:34:in `block (2 levels) in <top (required)>' | |
16) FamilySize should correctly calculate couple family type | |
Failure/Error: FamilySize.calculate_for_voucher(voucher).name.should == "Couple" | |
expected: "Couple" | |
got: nil (using ==) | |
# ./spec/models/family_size_spec.rb:48:in `block (2 levels) in <top (required)>' | |
17) FamilySize should correctly calculate other family type | |
Failure/Error: FamilySize.calculate_for_voucher(voucher).name.should == "Other" | |
expected: "Other" | |
got: nil (using ==) | |
# ./spec/models/family_size_spec.rb:57:in `block (2 levels) in <top (required)>' | |
18) VoucherFamilySize should update the family size on save | |
Failure/Error: voucher.family_size.name.should == "Family" | |
expected: "Family" | |
got: nil (using ==) | |
# ./spec/models/voucher_spec.rb:14:in `block (2 levels) in <top (required)>' | |
19) StockItemsGroupedByDistributor_Distribution should only select stock items that are in the date range | |
Failure/Error: FactoryGirl.create(:stock_item, :foodbank_project_id => foodbank.id, | |
ActiveRecord::RecordInvalid: | |
Validation failed: Date must be in the past | |
# ./spec/models/stock_item_spec.rb:340:in `block in create_stock_items_for_distributor_two' | |
# ./spec/models/stock_item_spec.rb:339:in `times' | |
# ./spec/models/stock_item_spec.rb:339:in `create_stock_items_for_distributor_two' | |
# ./spec/models/stock_item_spec.rb:315:in `create_stock_items' | |
# ./spec/models/stock_item_spec.rb:288:in `load_distribution_sample_data' | |
# ./spec/models/stock_item_spec.rb:52:in `block (2 levels) in <top (required)>' | |
20) VoucherStatisticsFinders should correctly calculate family size statistics | |
Failure/Error: assert statistics.count.should == 5 | |
expected: 5 | |
got: 1 (using ==) | |
# ./spec/models/voucher_spec.rb:225:in `block (2 levels) in <top (required)>' | |
Finished in 1 minute 10.48 seconds | |
113 examples, 20 failures, 1 pending | |
Failed examples: | |
rspec ./spec/models/donor_spec.rb:45 # Donor should correctly summaries donations by event for a foodbank in a defined date range | |
rspec ./spec/features/emails_spec.rb:38 # Emails emails for a project manager should have a Change Password link for an email | |
rspec ./spec/features/emails_spec.rb:27 # Emails emails for a project manager should show a login link for each email | |
rspec ./spec/features/emails_spec.rb:16 # Emails emails for a project manager should show a list of emails for the foodbank | |
rspec ./spec/features/emails_spec.rb:5 # Emails emails for a project manager should show a no emails message when there are no emails | |
rspec ./spec/features/announcements_spec.rb:7 # Announcements displays active announcements | |
rspec ./spec/features/announcements_spec.rb:23 # Announcements stays on page when clicking hide announcement link using javascript | |
rspec ./spec/features/regions_spec.rb:9 # Regions GET /regions should show create new regions when there are no regions defined | |
rspec ./spec/models/foodbank_project_spec.rb:38 # FoodbankProject should not create duplicate dnsrecords | |
rspec ./spec/models/foodbank_project_spec.rb:28 # FoodbankProject should not create more dns when name is the same | |
rspec ./spec/models/foodbank_project_spec.rb:15 # FoodbankProject creates more dns records on name change | |
rspec ./spec/models/foodbank_project_spec.rb:5 # FoodbankProject creates dns record for the public website | |
rspec ./spec/models/family_size_spec.rb:5 # FamilySize should correctly calculate single family type | |
rspec ./spec/models/family_size_spec.rb:14 # FamilySize should correctly calculate single parent family type | |
rspec ./spec/models/family_size_spec.rb:28 # FamilySize should correctly calculate family family type | |
rspec ./spec/models/family_size_spec.rb:42 # FamilySize should correctly calculate couple family type | |
rspec ./spec/models/family_size_spec.rb:51 # FamilySize should correctly calculate other family type | |
rspec ./spec/models/voucher_spec.rb:5 # VoucherFamilySize should update the family size on save | |
rspec ./spec/models/stock_item_spec.rb:51 # StockItemsGroupedByDistributor_Distribution should only select stock items that are in the date range | |
rspec ./spec/models/voucher_spec.rb:218 # VoucherStatisticsFinders should correctly calculate family size statistics |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment