Created
May 19, 2014 19:38
-
-
Save lukebergen/cd16957aececc459a814 to your computer and use it in GitHub Desktop.
the-guide PG failures
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
Failures: | |
1) Api::V1::AuthorsController index returns a list of authors by website ids | |
Failure/Error: authors.should have(1).author | |
expected 1 author, got 0 | |
# ./spec/controllers/api/v1/authors_controller_spec.rb:39:in `block (3 levels) in <top (required)>' | |
2) Api::V1::ProductsController types returns all of the product types available | |
Failure/Error: get :types | |
JSON::Schema::ValidationError: | |
The property '#/Appliances::MajorAppliances::Freezer/defaults' did not contain a required property of 'manufacturer_specs' in schema c473fafb-5753-5c72-bb65-8481fe96ce72# | |
# ./spec/controllers/api/v1/products_controller_spec.rb:558:in `block (3 levels) in <top (required)>' | |
3) Product scopes #max_raw_score should return the one with the max raw score | |
Failure/Error: Product.first.should_not eql(max) | |
expected: value != #<Electronics::Cameras::DSLR _bson_id: nil, name: "My Awesome Product dc9c941c-79cd-43fa-805c-2be120da...", slug: "my-awesome-product-dc9c941c-79cd-43fa-805c-2be120da...", model: "", model_specifier: "", upc: nil, price_grabber_id: nil, raw_rating: nil, product_rating: nil, msrp: 812.0, _type: "Electronics::Cameras::DSLR", publish_on: nil, archive_state: "by_date", is_scoring_baseline: false, amazon_asin: "A1B2C3", amazon_is_related_product: false, awarded_times: nil, created_at: "2014-05-19 19:11:55", updated_at: "2014-05-19 19:11:55", tags: "{}", brand_id: 431, article_ids: nil, website_ids: nil, attachment_ids: nil, award_ids: nil, manufacturer_specs: nil, _extra_props: nil, id: 384, types: [], raw_scores: {"foo"=>{"value"=>10}}, scaled_scores: {}, rubric_id: 399, _bson_brand_id: nil, _bson_rubric_id: nil, keywords: []> | |
got: #<Electronics::Cameras::DSLR _bson_id: nil, name: "My Awesome Product dc9c941c-79cd-43fa-805c-2be120da...", slug: "my-awesome-product-dc9c941c-79cd-43fa-805c-2be120da...", model: "", model_specifier: "", upc: nil, price_grabber_id: nil, raw_rating: nil, product_rating: nil, msrp: 812.0, _type: "Electronics::Cameras::DSLR", publish_on: nil, archive_state: "by_date", is_scoring_baseline: false, amazon_asin: "A1B2C3", amazon_is_related_product: false, awarded_times: nil, created_at: "2014-05-19 19:11:55", updated_at: "2014-05-19 19:11:55", tags: "{}", brand_id: 431, article_ids: nil, website_ids: nil, attachment_ids: nil, award_ids: nil, manufacturer_specs: nil, _extra_props: nil, id: 384, types: [], raw_scores: {"foo"=>{"value"=>10}}, scaled_scores: {}, rubric_id: 399, _bson_brand_id: nil, _bson_rubric_id: nil, keywords: []> | |
(compared using eql?) | |
Diff:Electronics::Cameras::DSLR:384.==(Electronics::Cameras::DSLR:384) returned false even though the diff between Electronics::Cameras::DSLR:384 and Electronics::Cameras::DSLR:384 is empty. Check the implementation of Electronics::Cameras::DSLR:384.==. | |
# ./spec/models/product_spec.rb:283:in `block (4 levels) in <top (required)>' | |
4) Author Search Filters website_ids filters by website_ids | |
Failure/Error: results.should include(@a1) | |
expected #<Searchkick::Results:0x007fd14d327938 @klass=Author(_bson_id: text, name: text, sort_name: text, short_bio: text, long_bio: text, title: text, slug: text, created_at: datetime, updated_at: datetime, social_email: text, social_facebook: text, social_twitter: text, social_google_plus: text, _extra_props: text, id: integer), @response={"took"=>0, "timed_out"=>false, "_shards"=>{"total"=>1, "successful"=>1, "failed"=>0}, "hits"=>{"total"=>0, "max_score"=>nil, "hits"=>[]}}, @options={:page=>1, :per_page=>20, :load=>true, :includes=>nil}, @results=[]> to include #<Author _bson_id: nil, name: "Name 267", sort_name: "267, name", short_bio: "Is a prestigious writer who has worked with Reviwed...", long_bio: "Graduated from Faux University in 2008 and later be...", title: "President", slug: "name-267", created_at: "2014-05-19 19:12:11", updated_at: "2014-05-19 19:12:11", social_email: "[email protected]", social_facebook: "http://www.facebook.com/test_user", social_twitter: "test_user", social_google_plus: "110903188340300021932", _extra_props: nil, id: 219> | |
Diff: | |
@@ -1,2 +1,11 @@ | |
-[#<Author _bson_id: nil, name: "Name 267", sort_name: "267, name", short_bio: "Is a prestigious writer who has worked with Reviwed...", long_bio: "Graduated from Faux University in 2008 and later be...", title: "President", slug: "name-267", created_at: "2014-05-19 19:12:11", updated_at: "2014-05-19 19:12:11", social_email: "[email protected]", social_facebook: "http://www.facebook.com/test_user", social_twitter: "test_user", social_google_plus: "110903188340300021932", _extra_props: nil, id: 219>] | |
+#<Searchkick::Results:0x007fd14d327938 | |
+ @klass= | |
+ Author(_bson_id: text, name: text, sort_name: text, short_bio: text, long_bio: text, title: text, slug: text, created_at: datetime, updated_at: datetime, social_email: text, social_facebook: text, social_twitter: text, social_google_plus: text, _extra_props: text, id: integer), | |
+ @options={:page=>1, :per_page=>20, :load=>true, :includes=>nil}, | |
+ @response= | |
+ {"took"=>0, | |
+ "timed_out"=>false, | |
+ "_shards"=>{"total"=>1, "successful"=>1, "failed"=>0}, | |
+ "hits"=>{"total"=>0, "max_score"=>nil, "hits"=>[]}}, | |
+ @results=[]> | |
# ./spec/search/author_spec.rb:101:in `block (4 levels) in <top (required)>' | |
5) Api::V1::BrandsController index returns a list of brands by website id | |
Failure/Error: brands.should have(1).brand | |
expected 1 brand, got 0 | |
# ./spec/controllers/api/v1/brands_controller_spec.rb:35:in `block (3 levels) in <top (required)>' | |
6) Brand Search Filters website_ids filters by website_ids | |
Failure/Error: results.should include(@b1) | |
expected #<Searchkick::Results:0x007fd14bc1aee8 @klass=Brand(_bson_id: text, name: text, url: text, source_location: text, legacy_id: text, description: text, slug: text, file_content_type: text, file_url: text, created_at: datetime, updated_at: datetime, website_ids: text, _extra_props: text, id: integer, parent_id: integer, _bson_parent_id: text), @response={"took"=>1, "timed_out"=>false, "_shards"=>{"total"=>1, "successful"=>1, "failed"=>0}, "hits"=>{"total"=>0, "max_score"=>nil, "hits"=>[]}}, @options={:page=>1, :per_page=>20, :load=>true, :includes=>nil}, @results=[]> to include #<Brand _bson_id: nil, name: "Dunder Miflin 864", url: "www.example883.org", source_location: "c0c2d324860583e32f62fc34aa13d76e4911c7b3", legacy_id: nil, description: {}, slug: "dunder-miflin-864", file_content_type: nil, file_url: nil, created_at: "2014-05-19 19:14:15", updated_at: "2014-05-19 19:14:15", website_ids: nil, _extra_props: nil, id: 846, parent_id: nil, _bson_parent_id: nil> | |
Diff: | |
@@ -1,2 +1,11 @@ | |
-[#<Brand _bson_id: nil, name: "Dunder Miflin 864", url: "www.example883.org", source_location: "c0c2d324860583e32f62fc34aa13d76e4911c7b3", legacy_id: nil, description: {}, slug: "dunder-miflin-864", file_content_type: nil, file_url: nil, created_at: "2014-05-19 19:14:15", updated_at: "2014-05-19 19:14:15", website_ids: nil, _extra_props: nil, id: 846, parent_id: nil, _bson_parent_id: nil>] | |
+#<Searchkick::Results:0x007fd14bc1aee8 | |
+ @klass= | |
+ Brand(_bson_id: text, name: text, url: text, source_location: text, legacy_id: text, description: text, slug: text, file_content_type: text, file_url: text, created_at: datetime, updated_at: datetime, website_ids: text, _extra_props: text, id: integer, parent_id: integer, _bson_parent_id: text), | |
+ @options={:page=>1, :per_page=>20, :load=>true, :includes=>nil}, | |
+ @response= | |
+ {"took"=>1, | |
+ "timed_out"=>false, | |
+ "_shards"=>{"total"=>1, "successful"=>1, "failed"=>0}, | |
+ "hits"=>{"total"=>0, "max_score"=>nil, "hits"=>[]}}, | |
+ @results=[]> | |
# ./spec/search/brand_spec.rb:90:in `block (4 levels) in <top (required)>' | |
Failures: | |
1) Api::V1::AuthorsController index returns a list of authors by website ids | |
Failure/Error: authors.should have(1).author | |
expected 1 author, got 0 | |
# ./spec/controllers/api/v1/authors_controller_spec.rb:39:in `block (3 levels) in <top (required)>' | |
2) Api::V1::ProductsController types returns all of the product types available | |
Failure/Error: get :types | |
JSON::Schema::ValidationError: | |
The property '#/Appliances::MajorAppliances::Freezer/defaults' did not contain a required property of 'manufacturer_specs' in schema c473fafb-5753-5c72-bb65-8481fe96ce72# | |
# ./spec/controllers/api/v1/products_controller_spec.rb:558:in `block (3 levels) in <top (required)>' | |
3) Product scopes #max_raw_score should return the one with the max raw score | |
Failure/Error: Product.first.should_not eql(max) | |
expected: value != #<Electronics::Cameras::DSLR _bson_id: nil, name: "My Awesome Product dc9c941c-79cd-43fa-805c-2be120da...", slug: "my-awesome-product-dc9c941c-79cd-43fa-805c-2be120da...", model: "", model_specifier: "", upc: nil, price_grabber_id: nil, raw_rating: nil, product_rating: nil, msrp: 812.0, _type: "Electronics::Cameras::DSLR", publish_on: nil, archive_state: "by_date", is_scoring_baseline: false, amazon_asin: "A1B2C3", amazon_is_related_product: false, awarded_times: nil, created_at: "2014-05-19 19:11:55", updated_at: "2014-05-19 19:11:55", tags: "{}", brand_id: 431, article_ids: nil, website_ids: nil, attachment_ids: nil, award_ids: nil, manufacturer_specs: nil, _extra_props: nil, id: 384, types: [], raw_scores: {"foo"=>{"value"=>10}}, scaled_scores: {}, rubric_id: 399, _bson_brand_id: nil, _bson_rubric_id: nil, keywords: []> | |
got: #<Electronics::Cameras::DSLR _bson_id: nil, name: "My Awesome Product dc9c941c-79cd-43fa-805c-2be120da...", slug: "my-awesome-product-dc9c941c-79cd-43fa-805c-2be120da...", model: "", model_specifier: "", upc: nil, price_grabber_id: nil, raw_rating: nil, product_rating: nil, msrp: 812.0, _type: "Electronics::Cameras::DSLR", publish_on: nil, archive_state: "by_date", is_scoring_baseline: false, amazon_asin: "A1B2C3", amazon_is_related_product: false, awarded_times: nil, created_at: "2014-05-19 19:11:55", updated_at: "2014-05-19 19:11:55", tags: "{}", brand_id: 431, article_ids: nil, website_ids: nil, attachment_ids: nil, award_ids: nil, manufacturer_specs: nil, _extra_props: nil, id: 384, types: [], raw_scores: {"foo"=>{"value"=>10}}, scaled_scores: {}, rubric_id: 399, _bson_brand_id: nil, _bson_rubric_id: nil, keywords: []> | |
(compared using eql?) | |
Diff:Electronics::Cameras::DSLR:384.==(Electronics::Cameras::DSLR:384) returned false even though the diff between Electronics::Cameras::DSLR:384 and Electronics::Cameras::DSLR:384 is empty. Check the implementation of Electronics::Cameras::DSLR:384.==. | |
# ./spec/models/product_spec.rb:283:in `block (4 levels) in <top (required)>' | |
4) Author Search Filters website_ids filters by website_ids | |
Failure/Error: results.should include(@a1) | |
expected #<Searchkick::Results:0x007fd14d327938 @klass=Author(_bson_id: text, name: text, sort_name: text, short_bio: text, long_bio: text, title: text, slug: text, created_at: datetime, updated_at: datetime, social_email: text, social_facebook: text, social_twitter: text, social_google_plus: text, _extra_props: text, id: integer), @response={"took"=>0, "timed_out"=>false, "_shards"=>{"total"=>1, "successful"=>1, "failed"=>0}, "hits"=>{"total"=>0, "max_score"=>nil, "hits"=>[]}}, @options={:page=>1, :per_page=>20, :load=>true, :includes=>nil}, @results=[]> to include #<Author _bson_id: nil, name: "Name 267", sort_name: "267, name", short_bio: "Is a prestigious writer who has worked with Reviwed...", long_bio: "Graduated from Faux University in 2008 and later be...", title: "President", slug: "name-267", created_at: "2014-05-19 19:12:11", updated_at: "2014-05-19 19:12:11", social_email: "[email protected]", social_facebook: "http://www.facebook.com/test_user", social_twitter: "test_user", social_google_plus: "110903188340300021932", _extra_props: nil, id: 219> | |
Diff: | |
@@ -1,2 +1,11 @@ | |
-[#<Author _bson_id: nil, name: "Name 267", sort_name: "267, name", short_bio: "Is a prestigious writer who has worked with Reviwed...", long_bio: "Graduated from Faux University in 2008 and later be...", title: "President", slug: "name-267", created_at: "2014-05-19 19:12:11", updated_at: "2014-05-19 19:12:11", social_email: "[email protected]", social_facebook: "http://www.facebook.com/test_user", social_twitter: "test_user", social_google_plus: "110903188340300021932", _extra_props: nil, id: 219>] | |
+#<Searchkick::Results:0x007fd14d327938 | |
+ @klass= | |
+ Author(_bson_id: text, name: text, sort_name: text, short_bio: text, long_bio: text, title: text, slug: text, created_at: datetime, updated_at: datetime, social_email: text, social_facebook: text, social_twitter: text, social_google_plus: text, _extra_props: text, id: integer), | |
+ @options={:page=>1, :per_page=>20, :load=>true, :includes=>nil}, | |
+ @response= | |
+ {"took"=>0, | |
+ "timed_out"=>false, | |
+ "_shards"=>{"total"=>1, "successful"=>1, "failed"=>0}, | |
+ "hits"=>{"total"=>0, "max_score"=>nil, "hits"=>[]}}, | |
+ @results=[]> | |
# ./spec/search/author_spec.rb:101:in `block (4 levels) in <top (required)>' | |
5) Api::V1::BrandsController index returns a list of brands by website id | |
Failure/Error: brands.should have(1).brand | |
expected 1 brand, got 0 | |
# ./spec/controllers/api/v1/brands_controller_spec.rb:35:in `block (3 levels) in <top (required)>' | |
6) Brand Search Filters website_ids filters by website_ids | |
Failure/Error: results.should include(@b1) | |
expected #<Searchkick::Results:0x007fd14bc1aee8 @klass=Brand(_bson_id: text, name: text, url: text, source_location: text, legacy_id: text, description: text, slug: text, file_content_type: text, file_url: text, created_at: datetime, updated_at: datetime, website_ids: text, _extra_props: text, id: integer, parent_id: integer, _bson_parent_id: text), @response={"took"=>1, "timed_out"=>false, "_shards"=>{"total"=>1, "successful"=>1, "failed"=>0}, "hits"=>{"total"=>0, "max_score"=>nil, "hits"=>[]}}, @options={:page=>1, :per_page=>20, :load=>true, :includes=>nil}, @results=[]> to include #<Brand _bson_id: nil, name: "Dunder Miflin 864", url: "www.example883.org", source_location: "c0c2d324860583e32f62fc34aa13d76e4911c7b3", legacy_id: nil, description: {}, slug: "dunder-miflin-864", file_content_type: nil, file_url: nil, created_at: "2014-05-19 19:14:15", updated_at: "2014-05-19 19:14:15", website_ids: nil, _extra_props: nil, id: 846, parent_id: nil, _bson_parent_id: nil> | |
Diff: | |
@@ -1,2 +1,11 @@ | |
-[#<Brand _bson_id: nil, name: "Dunder Miflin 864", url: "www.example883.org", source_location: "c0c2d324860583e32f62fc34aa13d76e4911c7b3", legacy_id: nil, description: {}, slug: "dunder-miflin-864", file_content_type: nil, file_url: nil, created_at: "2014-05-19 19:14:15", updated_at: "2014-05-19 19:14:15", website_ids: nil, _extra_props: nil, id: 846, parent_id: nil, _bson_parent_id: nil>] | |
+#<Searchkick::Results:0x007fd14bc1aee8 | |
+ @klass= | |
+ Brand(_bson_id: text, name: text, url: text, source_location: text, legacy_id: text, description: text, slug: text, file_content_type: text, file_url: text, created_at: datetime, updated_at: datetime, website_ids: text, _extra_props: text, id: integer, parent_id: integer, _bson_parent_id: text), | |
+ @options={:page=>1, :per_page=>20, :load=>true, :includes=>nil}, | |
+ @response= | |
+ {"took"=>1, | |
+ "timed_out"=>false, | |
+ "_shards"=>{"total"=>1, "successful"=>1, "failed"=>0}, | |
+ "hits"=>{"total"=>0, "max_score"=>nil, "hits"=>[]}}, | |
+ @results=[]> | |
# ./spec/search/brand_spec.rb:90:in `block (4 levels) in <top (required)>' | |
Finished in 4 minutes 11.79 seconds | |
1408 examples, 6 failures | |
Failed examples: | |
rspec ./spec/controllers/api/v1/authors_controller_spec.rb:33 # Api::V1::AuthorsController index returns a list of authors by website ids | |
rspec ./spec/controllers/api/v1/products_controller_spec.rb:557 # Api::V1::ProductsController types returns all of the product types available | |
rspec ./spec/models/product_spec.rb:280 # Product scopes #max_raw_score should return the one with the max raw score | |
rspec ./spec/search/author_spec.rb:99 # Author Search Filters website_ids filters by website_ids | |
rspec ./spec/controllers/api/v1/brands_controller_spec.rb:29 # Api::V1::BrandsController index returns a list of brands by website id | |
rspec ./spec/search/brand_spec.rb:88 # Brand Search Filters website_ids filters by website_ids | |
Finished in 4 minutes 11.79 seconds | |
1408 examples, 6 failures | |
Failed examples: | |
rspec ./spec/controllers/api/v1/authors_controller_spec.rb:33 # Api::V1::AuthorsController index returns a list of authors by website ids | |
rspec ./spec/controllers/api/v1/products_controller_spec.rb:557 # Api::V1::ProductsController types returns all of the product types available | |
rspec ./spec/models/product_spec.rb:280 # Product scopes #max_raw_score should return the one with the max raw score | |
rspec ./spec/search/author_spec.rb:99 # Author Search Filters website_ids filters by website_ids | |
rspec ./spec/controllers/api/v1/brands_controller_spec.rb:29 # Api::V1::BrandsController index returns a list of brands by website id | |
rspec ./spec/search/brand_spec.rb:88 # Brand Search Filters website_ids filters by website_ids | |
Randomized with seed 22 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment