Created
June 28, 2012 23:26
-
-
Save shaiguitar/3014696 to your computer and use it in GitHub Desktop.
realweb spec
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
1.9.2 realweb [silence_stdout]$ b rspec spec/ | |
The Gemfile's dependencies are satisfied | |
...>> Thin web server (v1.3.1 codename Triple Espresso) | |
>> Maximum connections set to 1024 | |
>> Listening on 127.0.0.1:8848, CTRL+C to stop | |
.>> Thin web server (v1.3.1 codename Triple Espresso) | |
>> Maximum connections set to 1024 | |
>> Listening on 127.0.0.1:9669, CTRL+C to stop | |
.localhost - - [28/Jun/2012:16:25:37 PDT] "GET / HTTP/1.1" 500 338 | |
- -> / | |
localhost - - [28/Jun/2012:16:25:37 PDT] "GET / HTTP/1.1" 500 338 | |
- -> / | |
F>> Thin web server (v1.3.1 codename Triple Espresso) | |
>> Maximum connections set to 1024 | |
>> Listening on 127.0.0.1:9274, CTRL+C to stop | |
.*>> Thin web server (v1.3.1 codename Triple Espresso) | |
>> Maximum connections set to 1024 | |
>> Listening on 127.0.0.1:9412, CTRL+C to stop | |
*....F...... | |
Pending: | |
RealWeb InThreadServer.with_server cleans up the server block exit | |
# Rack handles/defines server stop and cleanup | |
# ./spec/realweb_spec.rb:58 | |
RealWeb InThreadServer.start_server becomes inaccessible when stop is called | |
# Rack handles/defines server stop and cleanup | |
# ./spec/realweb_spec.rb:67 | |
Failures: | |
1) RealWeb InThreadServer it should behave like working server works with webrick | |
Failure/Error: open(server.base_uri).read.should == "Hello World" | |
OpenURI::HTTPError: | |
500 Internal Server Error | |
Shared Example Group: "working server" called from ./spec/realweb_spec.rb:54 | |
# ./spec/realweb_spec.rb:33:in `block (5 levels) in <top (required)>' | |
# ./lib/realweb/server.rb:12:in `block in with_rackup' | |
# ./lib/realweb/server.rb:28:in `initialize' | |
# ./lib/realweb/server.rb:10:in `new' | |
# ./lib/realweb/server.rb:10:in `with_rackup' | |
# ./lib/realweb.rb:18:in `with_server_in_thread' | |
# ./spec/realweb_spec.rb:51:in `with_server' | |
# ./spec/realweb_spec.rb:32:in `block (4 levels) in <top (required)>' | |
2) RealWeb ForkingServer it should behave like working server works with webrick | |
Failure/Error: open(server.base_uri).read.should == "Hello World" | |
OpenURI::HTTPError: | |
500 Internal Server Error | |
Shared Example Group: "working server" called from ./spec/realweb_spec.rb:102 | |
# ./spec/realweb_spec.rb:33:in `block (5 levels) in <top (required)>' | |
# ./lib/realweb/server.rb:12:in `block in with_rackup' | |
# ./lib/realweb/server.rb:28:in `initialize' | |
# ./lib/realweb/server.rb:10:in `new' | |
# ./lib/realweb/server.rb:10:in `with_rackup' | |
# ./lib/realweb.rb:22:in `with_server_in_fork' | |
# ./spec/realweb_spec.rb:80:in `with_server' | |
# ./spec/realweb_spec.rb:32:in `block (4 levels) in <top (required)>' | |
Finished in 27.93 seconds | |
20 examples, 2 failures, 2 pending | |
Failed examples: | |
rspec ./spec/realweb_spec.rb:31 # RealWeb InThreadServer it should behave like working server works with webrick | |
rspec ./spec/realweb_spec.rb:31 # RealWeb ForkingServer it should behave like working server works with webrick |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment