Skip to content

Instantly share code, notes, and snippets.

@ordinaryzelig
Created February 1, 2013 16:02
Show Gist options
  • Save ordinaryzelig/4692204 to your computer and use it in GitHub Desktop.
Save ordinaryzelig/4692204 to your computer and use it in GitHub Desktop.
Run options: --seed 40919
# Running tests:
EE.E.E.E..E.......E
Fabulous tests in 2.850542s, 6.6654 tests/s, 7.3670 assertions/s.
1) Error:
test_0001_crawls, parses, and returns array with data of journeys(DeBahnApi::.find):
NoMethodError: undefined method `write' for IO:Class
/Users/ningja/dev/projects/from_a_to_b/de_bahn_api/spec/support/custom_assertions.rb:30:in `rescue in assert_equals_fixture_file_content_as_json'
/Users/ningja/dev/projects/from_a_to_b/de_bahn_api/spec/support/custom_assertions.rb:25:in `assert_equals_fixture_file_content_as_json'
(eval):8:in `must_equal_fixture_file_content_as_json'
/Users/ningja/dev/projects/from_a_to_b/de_bahn_api/spec/de_bahn_api.spec.rb:15:in `block (4 levels) in <top (required)>'
/Users/ningja/.rvm/gems/ruby-1.9.2-p290@de_bahn/gems/vcr-2.3.0/lib/vcr/util/variable_args_block_caller.rb:9:in `call'
/Users/ningja/.rvm/gems/ruby-1.9.2-p290@de_bahn/gems/vcr-2.3.0/lib/vcr/util/variable_args_block_caller.rb:9:in `call_block'
/Users/ningja/.rvm/gems/ruby-1.9.2-p290@de_bahn/gems/vcr-2.3.0/lib/vcr.rb:169:in `use_cassette'
/Users/ningja/dev/projects/from_a_to_b/de_bahn_api/spec/de_bahn_api.spec.rb:9:in `block (3 levels) in <top (required)>'
2) Error:
test_0002_returns data needed for deeplink generation(DeBahnApi::.find):
Errno::ECONNRESET: Connection reset by peer
/Users/ningja/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/protocol.rb:135:in `read_nonblock'
/Users/ningja/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/protocol.rb:135:in `rbuf_fill'
/Users/ningja/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/protocol.rb:116:in `readuntil'
/Users/ningja/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/protocol.rb:126:in `readline'
/Users/ningja/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:2219:in `read_status_line'
/Users/ningja/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:2208:in `read_new'
/Users/ningja/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:1191:in `transport_request'
/Users/ningja/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:1177:in `request'
/Users/ningja/.rvm/gems/ruby-1.9.2-p290@de_bahn/gems/fakeweb-1.3.0/lib/fake_web/ext/net_http.rb:50:in `request_with_fakeweb'
/Users/ningja/.rvm/gems/ruby-1.9.2-p290@de_bahn/gems/vcr-2.3.0/lib/vcr/library_hooks/fakeweb.rb:66:in `perform_request'
/Users/ningja/.rvm/gems/ruby-1.9.2-p290@de_bahn/gems/vcr-2.3.0/lib/vcr/library_hooks/fakeweb.rb:41:in `on_recordable_request'
/Users/ningja/.rvm/gems/ruby-1.9.2-p290@de_bahn/gems/vcr-2.3.0/lib/vcr/request_handler.rb:24:in `handle'
/Users/ningja/.rvm/gems/ruby-1.9.2-p290@de_bahn/gems/vcr-2.3.0/lib/vcr/library_hooks/fakeweb.rb:24:in `handle'
/Users/ningja/.rvm/gems/ruby-1.9.2-p290@de_bahn/gems/vcr-2.3.0/lib/vcr/library_hooks/fakeweb.rb:164:in `request_with_vcr'
/Users/ningja/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:1081:in `request_get'
/Users/ningja/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:394:in `block in get_response'
/Users/ningja/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:627:in `start'
/Users/ningja/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:393:in `get_response'
/Users/ningja/dev/projects/from_a_to_b/de_bahn_api/spec/de_bahn_api.spec.rb:41:in `block (3 levels) in <top (required)>'
3) Error:
test_0008_.translate_journey_and_set_fares takes journey extractive and fares grouped by sid
and returns the unified data in target format(DeBahnApi::DataTranslator):
NoMethodError: undefined method `write' for IO:Class
/Users/ningja/dev/projects/from_a_to_b/de_bahn_api/spec/support/custom_assertions.rb:30:in `rescue in assert_equals_fixture_file_content_as_json'
/Users/ningja/dev/projects/from_a_to_b/de_bahn_api/spec/support/custom_assertions.rb:25:in `assert_equals_fixture_file_content_as_json'
(eval):8:in `must_equal_fixture_file_content_as_json'
/Users/ningja/dev/projects/from_a_to_b/de_bahn_api/spec/data_translator.spec.rb:58:in `block (2 levels) in <top (required)>'
4) Error:
test_0003_.translate_segment takes a segment extractive with additional date information and returns segment data in target format(DeBahnApi::DataTranslator):
NoMethodError: undefined method `write' for IO:Class
/Users/ningja/dev/projects/from_a_to_b/de_bahn_api/spec/support/custom_assertions.rb:30:in `rescue in assert_equals_fixture_file_content_as_json'
/Users/ningja/dev/projects/from_a_to_b/de_bahn_api/spec/support/custom_assertions.rb:25:in `assert_equals_fixture_file_content_as_json'
(eval):8:in `must_equal_fixture_file_content_as_json'
/Users/ningja/dev/projects/from_a_to_b/de_bahn_api/spec/data_translator.spec.rb:21:in `block (2 levels) in <top (required)>'
5) Error:
test_0002_.translate_journey takes a journey extractive and returns complete journey data in target format(DeBahnApi::DataTranslator):
NoMethodError: undefined method `write' for IO:Class
/Users/ningja/dev/projects/from_a_to_b/de_bahn_api/spec/support/custom_assertions.rb:30:in `rescue in assert_equals_fixture_file_content_as_json'
/Users/ningja/dev/projects/from_a_to_b/de_bahn_api/spec/support/custom_assertions.rb:25:in `assert_equals_fixture_file_content_as_json'
(eval):8:in `must_equal_fixture_file_content_as_json'
/Users/ningja/dev/projects/from_a_to_b/de_bahn_api/spec/data_translator.spec.rb:15:in `block (2 levels) in <top (required)>'
6) Error:
test_0001_.translate takes journey extractives and offer extractives and returns an array of journey data in target format(DeBahnApi::DataTranslator):
NoMethodError: undefined method `write' for IO:Class
/Users/ningja/dev/projects/from_a_to_b/de_bahn_api/spec/support/custom_assertions.rb:30:in `rescue in assert_equals_fixture_file_content_as_json'
/Users/ningja/dev/projects/from_a_to_b/de_bahn_api/spec/support/custom_assertions.rb:25:in `assert_equals_fixture_file_content_as_json'
(eval):8:in `must_equal_fixture_file_content_as_json'
/Users/ningja/dev/projects/from_a_to_b/de_bahn_api/spec/data_translator.spec.rb:10:in `block (2 levels) in <top (required)>'
7) Error:
test_0001_.parse parses source and returns data in target format(DeBahnApi::Parser):
NoMethodError: undefined method `write' for IO:Class
/Users/ningja/dev/projects/from_a_to_b/de_bahn_api/spec/support/custom_assertions.rb:30:in `rescue in assert_equals_fixture_file_content_as_json'
/Users/ningja/dev/projects/from_a_to_b/de_bahn_api/spec/support/custom_assertions.rb:25:in `assert_equals_fixture_file_content_as_json'
(eval):8:in `must_equal_fixture_file_content_as_json'
/Users/ningja/dev/projects/from_a_to_b/de_bahn_api/spec/parser.spec.rb:29:in `block (2 levels) in <top (required)>'
19 tests, 21 assertions, 0 failures, 7 errors, 0 skips
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment