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
| require 'spec/runner/formatter/base_text_formatter' | |
| module Spec | |
| module Runner | |
| module Formatter | |
| class FailingExamplesBacktrace < BaseTextFormatter | |
| def example_failed(example, counter, failure) | |
| @output.puts "#{example_group.description} #{example.description}" | |
| @output.flush | |
| end |
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
| bin/mspec ci --background | |
| rubinius 1.0.0 (1.8.7 3cc99fa1 2010-05-14 JI) [i686-apple-darwin9.8.0] | |
| ... | |
| Error: signal SIGSEGV | |
| 0 rbx 0x00038b5a _ZN8rubinius11Environment19setup_cpp_terminateEv + 202 | |
| 1 libSystem.B.dylib 0x9214b2bb _sigtramp + 43 | |
| 2 ??? 0xffffffff 0x0 + 4294967295 |
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
| class Object | |
| def _metaclass | |
| class << self | |
| self | |
| end | |
| end | |
| end | |
| module ThinkingSphinx |
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
| $ cat config/initializers/scopes_patch.rb | |
| class ActiveRecord::Base | |
| class << self | |
| def def_scope(name, options={}, &block) | |
| _name = name.to_sym | |
| named_scope(_name, block || options) | |
| _scope = scopes[_name] | |
| send(:subclasses).each do |k| | |
| k.scopes[_name] = _scope | |
| end |
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
| NoMethodError: undefined method `call' for nil:NilClass | |
| [GEM_ROOT]/gems/activerecord-2.3.4/lib/active_record/named_scope.rb:97:in `with_categories' | |
| [GEM_ROOT]/gems/activerecord-2.3.4/lib/active_record/associations/association_collection.rb:380:in `send' | |
| [GEM_ROOT]/gems/activerecord-2.3.4/lib/active_record/associations/association_collection.rb:380:in `method_missing_without_paginate' | |
| [GEM_ROOT]/gems/activerecord-2.3.4/lib/active_record/base.rb:2143:in `with_scope' | |
| [GEM_ROOT]/gems/activerecord-2.3.4/lib/active_record/associations/association_proxy.rb:206:in `send' | |
| [GEM_ROOT]/gems/activerecord-2.3.4/lib/active_record/associations/association_proxy.rb:206:in `with_scope' |
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
| [GEM_ROOT]/gems/activerecord-2.3.4/lib/active_record/attribute_methods.rb:313:in `[]=' | |
| [GEM_ROOT]/gems/activerecord-2.3.4/lib/active_record/attribute_methods.rb:313:in `write_attribute_without_dirty' | |
| [GEM_ROOT]/gems/activerecord-2.3.4/lib/active_record/dirty.rb:139:in `write_attribute' | |
| [PROJECT_ROOT]/app/models/tag.rb:11:in `name=' | |
| [PROJECT_ROOT]/vendor/plugins/thinking_sphinx_excerpts/lib/thinking_sphinx_excerpts.rb:79:in `send' | |
| [PROJECT_ROOT]/vendor/plugins/thinking_sphinx_excerpts/lib/thinking_sphinx_excerpts.rb:79:in `search' | |
| [PROJECT_ROOT]/vendor/plugins/thinking_sphinx_excerpts/lib/thinking_sphinx_excerpts.rb:76:in `each' | |
| [PROJECT_ROOT]/vendor/plugins/thinking_sphinx_excerpts/lib/thinking_sphinx_excerpts.rb:76:in `search' | |
| [GEM_ROOT]/gems/passenger-2.2.5/lib/phusion_passenger/rack/request_handler.rb:112:in `each_with_index' | |
| [GEM_ROOT]/gems/thinking-sphinx-1.3.16/lib/thinking_sphinx/search.rb:124:in `each' |
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
| TypeError (can't modify frozen hash): | |
| /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/thinking-sphinx-1.3.16/lib/thinking_sphinx/search.rb:124:in `each' | |
| /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/thinking-sphinx-1.3.16/lib/thinking_sphinx/search.rb:124:in `each_with_index' | |
| /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/thinking-sphinx-1.3.16/lib/thinking_sphinx/search.rb:124:in `send' | |
| /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/thinking-sphinx-1.3.16/lib/thinking_sphinx/search.rb:124:in `method_missing' | |
| app/controllers/searches_controller.rb:15:in `posts' | |
| app/middleware/flash_session_cookie_middleware.rb:17:in `call' | |
| passenger (2.2.5) lib/phusion_passenger/rack/request_handler.rb:95:in `process_request' | |
| passenger (2.2.5) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop' | |
| passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:378:in `start_request_handler' |
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
| jWebSocket handshake request: | |
| [[:receive_data, | |
| "GET / HTTP/1.1\r\nHost: 10.40.21.133\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Origin: http://10.40.21.133\r\nSec-WebSocket-Protocol: org.jwebsocket.json\r\nSec-WebSocket-Key: 86OhCtcFEa8VRGBQ9R7u1Q==\r\nSec-WebSocket-Version: 8\r\n"]] | |
| Chrome handshake request: | |
| [[:receive_data, | |
| "GET / HTTP/1.1\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nHost: localhost:3000\r\nSec-WebSocket-Origin: null\r\nSec-WebSocket-Key: UOShYhJF+HYUBLtDYNtgnw==\r\nSec-WebSocket-Version: 8\r\n\r\n"]] |
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
| it "should process close on message correctly " do | |
| EventMachine.run { | |
| MSG = "hello bi-directional data exchange" | |
| EventMachine::WebSocket.start(:host => "0.0.0.0", :port => 8085, :debug => true) do |ws| | |
| ws.onopen { p [:OPENED_WS, ws]} | |
| ws.onmessage {|msg| ws.close_webscoket } | |
| ws.onerror {|e| p [:WS_ERROR, e]} | |
| ws.onclose { p [:WS_CLOSE, ws]} | |
| end |
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
| source: | |
| # The API | |
| # | |
| class Api | |
| ## | |
| # Says hello | |
| # | |
| get '/hello' do | |
| body "hello" |
OlderNewer