{"action":"created","issue":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/4505","labels_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/4505/labels{/name}","comments_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/4505/comments","events_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/4505/events","html_url":"https://github.com/rapid7/metasploit-framework/issues/4505","id":53254900,"number":4505,"title":"RSpec tests fail without an active database connection","user":{"login":"FireFart","id":105281,"avatar_url":"https://avatars.githubusercontent.com/u/105281?v=3","gravatar_id":"","url":"https://api.github.com/users/FireFart","html_url":"https://github.com/FireFart","followers_url":"https://api.github.com/users/FireFart/followers","following_url":"https://api.github.com/users/FireFart/following{/other_user}","gists_url":"https://api.github.com/users/FireFart/gists{/gist_id}","starred_url":"https://api.github.com/users/FireFart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FireFart/subscriptions","organizations_url":"https://api.github.com/users/FireFart/orgs","repos_url":"https://api.github.com/users/FireFart/repos","events_url":"https://api.github.com/users/FireFart/events{/privacy}","received_events_url":"https://api.github.com/users/FireFart/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rapid7/metasploit-framework/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/rapid7/metasploit-framework/labels/tests","name":"tests","color":"009800"}],"state":"closed","locked":false,"assignee":{"login":"wchen-r7","id":1170914,"avatar_url":"https://avatars.githubusercontent.com/u/1170914?v=3","gravatar_id":"","url":"https://api.github.com/users/wchen-r7","html_url":"https://github.com/wchen-r7","followers_url":"https://api.github.com/users/wchen-r7/followers","following_url":"https://api.github.com/users/wchen-r7/following{/other_user}","gists_url":"https://api.github.com/users/wchen-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/wchen-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wchen-r7/subscriptions","organizations_url":"https://api.github.com/users/wchen-r7/orgs","repos_url":"https://api.github.com/users/wchen-r7/repos","events_url":"https://api.github.com/users/wchen-r7/events{/privacy}","received_events_url":"https://api.github.com/users/wchen-r7/received_events","type":"User","site_admin":false},"milestone":null,"comments":25,"created_at":"2015-01-02T14:24:20Z","updated_at":"2015-05-04T20:50:45Z","closed_at":"2015-05-04T18:39:58Z","body":"With the current master branch, the `rspec` command is failing:\r\n\r\n```\r\nroot@firefart:~/hacking/metasploit-framework# rspec\r\n/usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/railties-3.2.21/lib/rails/paths.rb:157:in `expand_path': can't convert nil into String (TypeError)\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/railties-3.2.21/lib/rails/paths.rb:157:in `block in expanded'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/railties-3.2.21/lib/rails/paths.rb:156:in `each'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/railties-3.2.21/lib/rails/paths.rb:156:in `expanded'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/railties-3.2.21/lib/rails/paths.rb:128:in `first'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/railties-3.2.21/lib/rails/application/configuration.rb:115:in `database_configuration'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/activerecord-3.2.21/lib/active_record/railtie.rb:84:in `block (2 levels) in <class:Railtie>'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/activesupport-3.2.21/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/activesupport-3.2.21/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/activesupport-3.2.21/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/activesupport-3.2.21/lib/active_support/lazy_load_hooks.rb:42:in `each'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/activesupport-3.2.21/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/activerecord-3.2.21/lib/active_record/base.rb:720:in `<top (required)>'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/metasploit_data_models-0.21.3/config/initializers/arel_helper.rb:4:in `<top (required)>'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:245:in `load'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:245:in `block in load'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:236:in `load_dependency'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:245:in `load'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/railties-3.2.21/lib/rails/engine.rb:593:in `block (2 levels) in <class:Engine>'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/railties-3.2.21/lib/rails/engine.rb:592:in `each'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/railties-3.2.21/lib/rails/engine.rb:592:in `block in <class:Engine>'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/railties-3.2.21/lib/rails/initializable.rb:30:in `instance_exec'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/railties-3.2.21/lib/rails/initializable.rb:30:in `run'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/railties-3.2.21/lib/rails/initializable.rb:55:in `block in run_initializers'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/railties-3.2.21/lib/rails/initializable.rb:54:in `each'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/railties-3.2.21/lib/rails/initializable.rb:54:in `run_initializers'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/railties-3.2.21/lib/rails/application.rb:136:in `initialize!'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/railties-3.2.21/lib/rails/railtie/configurable.rb:30:in `method_missing'\r\n\tfrom /root/hacking/metasploit-framework/config/environment.rb:5:in `<top (required)>'\r\n\tfrom /root/hacking/metasploit-framework/spec/spec_helper.rb:14:in `require'\r\n\tfrom /root/hacking/metasploit-framework/spec/spec_helper.rb:14:in `<top (required)>'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/rspec-core-2.99.1/lib/rspec/core/configuration.rb:1036:in `require'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/rspec-core-2.99.1/lib/rspec/core/configuration.rb:1036:in `block in setup_load_path_and_require'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/rspec-core-2.99.1/lib/rspec/core/configuration.rb:1036:in `each'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/rspec-core-2.99.1/lib/rspec/core/configuration.rb:1036:in `setup_load_path_and_require'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/rspec-core-2.99.1/lib/rspec/core/configuration_options.rb:25:in `configure'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/rspec-core-2.99.1/lib/rspec/core/command_line.rb:17:in `run'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/rspec-core-2.99.1/lib/rspec/core/runner.rb:103:in `run'\r\n\tfrom /usr/local/rvm/gems/ruby-1.9.3-p551@metasploit-framework/gems/rspec-core-2.99.1/lib/rspec/core/runner.rb:17:in `block in autorun'\r\n```"},"comment":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/comments/98846424","html_url":"https://github.com/rapid7/metasploit-framework/issues/4505#issuecomment-98846424","issue_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/4505","id":98846424,"user":{"login":"wvu-r7","id":4551878,"avatar_url":"https://avatars.githubusercontent.com/u/4551878?v=3","gravatar_id":"","url":"https://api.github.com/users/wvu-r7","html_url":"https://github.com/wvu-r7","followers_url":"https://api.github.com/users/wvu-r7/followers","following_url":"https://api.github.com/users/wvu-r7/following{/other_user}","gists_url":"https://api.github.com/users/wvu-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/wvu-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wvu-r7/subscriptions","organizations_url":"https://api.github.com/users/wvu-r7/orgs","repos_url":"https://api.github.com/users/wvu-r7/repos","events_url":"https://api.github.com/users/wvu-r7/events{/privacy}","received_events_url":"https://api.github.com/users/wvu-r7/received_events","type":"User","site_admin":false},"created_at":"2015-05-04T20:50:45Z","updated_at":"2015-05-04T20:50:45Z","body":"@FireFart: Es gefällt mir! :D"}}