Skip to content

Instantly share code, notes, and snippets.

@stereodenis
Created December 6, 2019 21:00
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 stereodenis/e7bda8e3b4a1d614c29b16349a5cf51f to your computer and use it in GitHub Desktop.
Save stereodenis/e7bda8e3b4a1d614c29b16349a5cf51f to your computer and use it in GitHub Desktop.
bundle exec rake "parallel:test[2]"
2 processes for 522 tests, ~ 261 tests per process
Run options: --seed 22027
# Running:
.Run options: --seed 33667
# Running:
..........................................S.SS.........................................................F....F.....................................WARNING: V8 isolate was forked, it can not be disposed and memory will not be reclaimed till the Ruby process exits.
.WARNING: V8 isolate was forked, it can not be disposed and memory will not be reclaimed till the Ruby process exits.
.............................................................................................................................................[DEPRECATION] Argument as FileStreamer-like object is deprecated. Use path to file instead.
...................................................................................................................................F.........EE....................................................................................................................F.......................................................................................EE.E......................[DEPRECATION] Argument as FileStreamer-like object is deprecated. Use path to file instead.
..............................................................S....................................................................................F.F.......S.S...............................................................E...........................................................................SS.........................................................................................F.[DEPRECATION] Argument as FileStreamer-like object is deprecated. Use path to file instead.
.................F...........................................................................................................................S..............................................S.S.S....................................................................................................................................................................................................................................................................................................................................................................................................................................................F..............................................................................................................................................................S.............................................................................S....................SS........................................................................................................................................................................................................................................................................................................................................................
Finished in 277.915364s, 4.5913 runs/s, 11.8525 assertions/s.
1) Error:
AbilityTest#test_0002_only owner, admin, operator and operator-outsourcer can rebook booking:
ActiveRecord::RecordInvalid: Validation failed: Email has already been taken
test/abilities/abilities_test.rb:12:in `user_can_rebook?'
test/abilities/abilities_test.rb:28:in `block (2 levels) in <class:AbilityTest>'
test/abilities/abilities_test.rb:26:in `each'
test/abilities/abilities_test.rb:26:in `block in <class:AbilityTest>'
2) Error:
AbilityTest#test_0001_only owner and admin can update payment:
ActiveRecord::RecordInvalid: Validation failed: Email has already been taken
test/abilities/abilities_test.rb:6:in `user_can_update_payment?'
test/abilities/abilities_test.rb:18:in `block (2 levels) in <class:AbilityTest>'
test/abilities/abilities_test.rb:16:in `each'
test/abilities/abilities_test.rb:16:in `block in <class:AbilityTest>'
3) Failure:
ExportKayakDataTest#test_0003_it writes correct_line to file [/Users/stereodenis/work/busfor/test/processes/export_kayak_data_test.rb:31]:
--- expected
+++ actual
@@ -1 +1 @@
-["Киев – Львов", "Kyiv – Lviv", "Киев", "Kyiv", "1165", "Львов", "Lviv", "1166", "2408.7"]
+["Киев – Львов", "Kyiv – Lviv", "Киев", "Kyiv", "1165", "Львов", "Lviv", "1166", "777.0"]
4) Failure:
GenerateAdwordsFeedTest#test_0002_it should fill in correct data for localized csv [/Users/stereodenis/work/busfor/test/processes/generate_adwords_feed_test.rb:36]:
--- expected
+++ actual
@@ -1,3 +1,3 @@
"ID,Item title,Final URL,Image URL,Price
-977f0c744ee8db2989e4,Киев – Львов,https://busfor.ru/%D0%B0%D0%B2%D1%82%D0%BE%D0%B1%D1%83%D1%81%D1%8B/%D0%9A%D0%B8%D0%B5%D0%B2/%D0%9B%D1%8C%D0%B2%D0%BE%D0%B2,https://s3.eu-central-1.amazonaws.com/busfor-media-uploads/adwords_feed/in_bus_13.png,777.0 RUB
+977f0c744ee8db2989e4,Киев – Львов,https://busfor.ru/%D0%B0%D0%B2%D1%82%D0%BE%D0%B1%D1%83%D1%81%D1%8B/%D0%9A%D0%B8%D0%B5%D0%B2/%D0%9B%D1%8C%D0%B2%D0%BE%D0%B2,https://s3.eu-central-1.amazonaws.com/busfor-media-uploads/adwords_feed/in_bus_13.png,2408.7 RUB
"
5) Failure:
GenerateAdwordsFeedTest#test_0003_it should fill current.csv with correct data [/Users/stereodenis/work/busfor/test/processes/generate_adwords_feed_test.rb:46]:
--- expected
+++ actual
@@ -1,3 +1,3 @@
"ID,Item title,Final URL,Image URL,Price
-977f0c744ee8db2989e4,Киев – Львов,https://busfor.ru/%D0%B0%D0%B2%D1%82%D0%BE%D0%B1%D1%83%D1%81%D1%8B/%D0%9A%D0%B8%D0%B5%D0%B2/%D0%9B%D1%8C%D0%B2%D0%BE%D0%B2,https://s3.eu-central-1.amazonaws.com/busfor-media-uploads/adwords_feed/in_bus_13.png,777.0 RUB
+977f0c744ee8db2989e4,Киев – Львов,https://busfor.ru/%D0%B0%D0%B2%D1%82%D0%BE%D0%B1%D1%83%D1%81%D1%8B/%D0%9A%D0%B8%D0%B5%D0%B2/%D0%9B%D1%8C%D0%B2%D0%BE%D0%B2,https://s3.eu-central-1.amazonaws.com/busfor-media-uploads/adwords_feed/in_bus_13.png,2408.7 RUB
"
6) Failure:
New::LdJsonMarkupCurrencyTest::foreign country host::with exchange rates#test_0001_generate local currency markup [/Users/stereodenis/work/busfor/test/integration/new_directions/ld_json_markup_currency_test.rb:60]:
<{"@context":"http://schema.org","@type":"Product","name":"Warszawa - Minsk","offers":{"@type":"AggregateOffer","highPrice":100,"lowPrice":100,"offerCount":5,"priceCurrency":"PLN"},"aggregateRating":{"@type":"AggregateRating","ratingCount":60,"ratingValue":4.3}}> expected but was
<{"@context":"http://schema.org","@type":"BusTrip","url":"http://busfor.pl/autobusy/Warszawa/Minsk","departureBusStop":{"type":"BusStop","name":"Warszawa"},"arrivalBusStop":{"type":"BusStop","name":"Minsk"}}>..
Expected 0 to be >= 1.
7) Failure:
New::LdJsonMarkupCurrencyTest::foreign country host::no exchange rates#test_0001_prices in default currency RUB [/Users/stereodenis/work/busfor/test/integration/new_directions/ld_json_markup_currency_test.rb:90]:
<{"@context":"http://schema.org","@type":"Product","name":"Warszawa - Minsk","offers":{"@type":"AggregateOffer","highPrice":1609,"lowPrice":1609,"offerCount":5,"priceCurrency":"RUB"},"aggregateRating":{"@type":"AggregateRating","ratingCount":60,"ratingValue":4.3}}> expected but was
<{"@context":"http://schema.org","@type":"BusTrip","url":"http://busfor.pl/autobusy/Warszawa/Minsk","departureBusStop":{"type":"BusStop","name":"Warszawa"},"arrivalBusStop":{"type":"BusStop","name":"Minsk"}}>..
Expected 0 to be >= 1.
8) Failure:
FetchPopularDirectionsTest::call#test_0001_returns popular directions from city [/Users/stereodenis/work/busfor/test/processes/fetch_popular_directions_test.rb:30]:
--- expected
+++ actual
@@ -1 +1 @@
-[#<Direction id: 413, domain_id: 3626, from_id: 1768, to_id: 1765, created_at: "2019-12-06 19:54:02", updated_at: "2019-12-06 19:54:02", popularity: 0, avg_results_count: 3, total_results_count: 0, price_from_cents: nil, price_from_currency: nil, price_to_cents: nil, price_to_currency: nil, favorite: false, is_popular: false, is_international: false, preview: nil, is_second_level: false, empty_searches_count: 0, searches_with_results_count: 3, is_third_level: false, seo_descriptions: {}, seo_titles: {}, recommended_carriers: nil, distance: nil, marketing_priority: 1.0>, #<Direction id: 414, domain_id: 3626, from_id: 1768, to_id: 1766, created_at: "2019-12-06 19:54:02", updated_at: "2019-12-06 19:54:02", popularity: 0, avg_results_count: 3, total_results_count: 0, price_from_cents: nil, price_from_currency: nil, price_to_cents: nil, price_to_currency: nil, favorite: false, is_popular: false, is_international: false, preview: nil, is_second_level: false, empty_searches_count: 0, searches_with_results_count: 3, is_third_level: false, seo_descriptions: {}, seo_titles: {}, recommended_carriers: nil, distance: nil, marketing_priority: 1.0>, #<Direction id: 415, domain_id: 3626, from_id: 1768, to_id: 1767, created_at: "2019-12-06 19:54:02", updated_at: "2019-12-06 19:54:02", popularity: 0, avg_results_count: 3, total_results_count: 0, price_from_cents: nil, price_from_currency: nil, price_to_cents: nil, price_to_currency: nil, favorite: false, is_popular: false, is_international: false, preview: nil, is_second_level: false, empty_searches_count: 0, searches_with_results_count: 3, is_third_level: false, seo_descriptions: {}, seo_titles: {}, recommended_carriers: nil, distance: nil, marketing_priority: 1.0>]
+#<ActiveRecord::AssociationRelation [#<Direction id: 415, domain_id: 3626, from_id: 1768, to_id: 1767, created_at: "2019-12-06 19:54:02", updated_at: "2019-12-06 19:54:02", popularity: 0, avg_results_count: 3, total_results_count: 0, price_from_cents: nil, price_from_currency: nil, price_to_cents: nil, price_to_currency: nil, favorite: false, is_popular: false, is_international: false, preview: nil, is_second_level: false, empty_searches_count: 0, searches_with_results_count: 3, is_third_level: false, seo_descriptions: {}, seo_titles: {}, recommended_carriers: nil, distance: nil, marketing_priority: 1.0>, #<Direction id: 414, domain_id: 3626, from_id: 1768, to_id: 1766, created_at: "2019-12-06 19:54:02", updated_at: "2019-12-06 19:54:02", popularity: 0, avg_results_count: 3, total_results_count: 0, price_from_cents: nil, price_from_currency: nil, price_to_cents: nil, price_to_currency: nil, favorite: false, is_popular: false, is_international: false, preview: nil, is_second_level: false, empty_searches_count: 0, searches_with_results_count: 3, is_third_level: false, seo_descriptions: {}, seo_titles: {}, recommended_carriers: nil, distance: nil, marketing_priority: 1.0>, #<Direction id: 413, domain_id: 3626, from_id: 1768, to_id: 1765, created_at: "2019-12-06 19:54:02", updated_at: "2019-12-06 19:54:02", popularity: 0, avg_results_count: 3, total_results_count: 0, price_from_cents: nil, price_from_currency: nil, price_to_cents: nil, price_to_currency: nil, favorite: false, is_popular: false, is_international: false, preview: nil, is_second_level: false, empty_searches_count: 0, searches_with_results_count: 3, is_third_level: false, seo_descriptions: {}, seo_titles: {}, recommended_carriers: nil, distance: nil, marketing_priority: 1.0>]>
1276 runs, 3294 assertions, 6 failures, 2 errors, 5 skips
You have skipped tests. Run with --verbose for details.
..........................................
........................................................................................SSSS.......................................S.......................F..............................................................................................................................................SSS.......................
Finished in 346.378421s, 3.9754 runs/s, 10.1507 assertions/s.
1) Failure:
TimetableLineDecoratorTest::ImpressionsTest#test_0001_#impressions_data_layer returns expected for given segment [/Users/stereodenis/work/busfor/test/decorators/timetable_line_decorator_test.rb:171]:
--- expected
+++ actual
@@ -1 +1 @@
-{:name=>"Киев – Львов", :direction=>"356", :price=>77.77, :category=>"internal"}
+{:name=>"Киев – Львов", :direction=>"356", :price=>200.5688, :category=>"internal"}
2) Failure:
TimetableLineDecoratorTest::ImpressionsTest#test_0002_#impressions_data_layer returns expected for absent direction [/Users/stereodenis/work/busfor/test/decorators/timetable_line_decorator_test.rb:185]:
--- expected
+++ actual
@@ -1 +1 @@
-{:name=>"Киев – Львов", :direction=>"358", :price=>77.77, :category=>"internal"}
+{:name=>"Киев – Львов", :direction=>"358", :price=>200.5688, :category=>"internal"}
3) Failure:
DirectionsCsvSerializerTest::with defult fields#test_0002_writes correct direction data [/Users/stereodenis/work/busfor/test/serializers/directions_csv_serializer_test.rb:66]:
--- expected
+++ actual
@@ -1 +1 @@
-["977f0c744ee8db2989e4", "http://busfor.ru/%D0%B0%D0%B2%D1%82%D0%BE%D0%B1%D1%83%D1%81%D1%8B/%D0%9A%D0%B8%D0%B5%D0%B2/%D0%9B%D1%8C%D0%B2%D0%BE%D0%B2", "https://s3.eu-central-1.amazonaws.com/busfor-media-uploads/criteo/big_image.jpg", "https://s3.eu-central-1.amazonaws.com/busfor-media-uploads/criteo/small_image.jpg", "777.0", "RUB", "Киев – Львов", "Билет на автобус Киев – Львов от 777,00 руб.", "Киев", "Украина", "Львов", "Украина", "0"]
+["977f0c744ee8db2989e4", "http://busfor.ru/%D0%B0%D0%B2%D1%82%D0%BE%D0%B1%D1%83%D1%81%D1%8B/%D0%9A%D0%B8%D0%B5%D0%B2/%D0%9B%D1%8C%D0%B2%D0%BE%D0%B2", "https://s3.eu-central-1.amazonaws.com/busfor-media-uploads/criteo/big_image.jpg", "https://s3.eu-central-1.amazonaws.com/busfor-media-uploads/criteo/small_image.jpg", "2408.7", "RUB", "Киев – Львов", "Билет на автобус Киев – Львов от 2 408,70 руб.", "Киев", "Украина", "Львов", "Украина", "0"]
4) Error:
OrdersExtendedWithOperatorEmailQueryTest#test_0001_email exists for operator if order IS from callcenter:
ActiveRecord::RecordNotUnique: PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "operators_pkey"
DETAIL: Key (id)=(1) already exists.
: INSERT INTO "operators" ("id", "email", "encrypted_password", "created_at", "updated_at", "access_groups") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"
test/queries/orders_extended_with_operator_email_query_test.rb:5:in `block in <class:OrdersExtendedWithOperatorEmailQueryTest>'
5) Error:
OrdersExtendedWithOperatorEmailQueryTest#test_0002_NO operators email if order is NOT from callcenter:
ActiveRecord::RecordNotUnique: PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "operators_pkey"
DETAIL: Key (id)=(1) already exists.
: INSERT INTO "operators" ("id", "email", "encrypted_password", "created_at", "updated_at", "access_groups") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"
test/queries/orders_extended_with_operator_email_query_test.rb:5:in `block in <class:OrdersExtendedWithOperatorEmailQueryTest>'
6) Error:
OrdersExtendedWithOperatorEmailQueryTest#test_0003_query is not limiting orders:
ActiveRecord::RecordNotUnique: PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "operators_pkey"
DETAIL: Key (id)=(1) already exists.
: INSERT INTO "operators" ("id", "email", "encrypted_password", "created_at", "updated_at", "access_groups") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"
test/queries/orders_extended_with_operator_email_query_test.rb:5:in `block in <class:OrdersExtendedWithOperatorEmailQueryTest>'
7) Error:
RefundApplicationsLastTakenByOperatorWithEmailQueryTest#test_0001_operator:
ActiveRecord::RecordInvalid: Validation failed: Email has already been taken
test/queries/refund_applications_last_taken_by_operator_with_email_query_test.rb:9:in `block in <class:RefundApplicationsLastTakenByOperatorWithEmailQueryTest>'
8) Failure:
DirectionsCsvSerializerTest::with kayak fields#test_0002_writes correct direction data [/Users/stereodenis/work/busfor/test/serializers/directions_csv_serializer_test.rb:106]:
--- expected
+++ actual
@@ -1 +1 @@
-["Киев – Львов", "Kyiv – Lviv", "Киев", "Kyiv", "2606", "Львов", "Lviv", "2607", "777.0"]
+["Киев – Львов", "Kyiv – Lviv", "Киев", "Kyiv", "2606", "Львов", "Lviv", "2607", "2408.7"]
1377 runs, 3516 assertions, 4 failures, 4 errors, 19 skips
You have skipped tests. Run with --verbose for details.
6810 assertions, 6 errors, 10 failures, 2653 runs, 24 skips
Took 363 seconds (6:03)
Tests Failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment