{"action":"opened","issue":{"url":"https://api.github.com/repos/suiyujin/jpmobile/issues/7","labels_url":"https://api.github.com/repos/suiyujin/jpmobile/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/suiyujin/jpmobile/issues/7/comments","events_url":"https://api.github.com/repos/suiyujin/jpmobile/issues/7/events","html_url":"https://github.com/suiyujin/jpmobile/issues/7","id":91417084,"number":7,"title":"SMTPサーバーが無くてエラーが出る","user":{"login":"suiyujin","id":4738635,"avatar_url":"https://avatars.githubusercontent.com/u/4738635?v=3","gravatar_id":"","url":"https://api.github.com/users/suiyujin","html_url":"https://github.com/suiyujin","followers_url":"https://api.github.com/users/suiyujin/followers","following_url":"https://api.github.com/users/suiyujin/following{/other_user}","gists_url":"https://api.github.com/users/suiyujin/gists{/gist_id}","starred_url":"https://api.github.com/users/suiyujin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suiyujin/subscriptions","organizations_url":"https://api.github.com/users/suiyujin/orgs","repos_url":"https://api.github.com/users/suiyujin/repos","events_url":"https://api.github.com/users/suiyujin/events{/privacy}","received_events_url":"https://api.github.com/users/suiyujin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-27T05:19:41Z","updated_at":"2015-06-27T05:19:41Z","closed_at":null,"body":"####エラー内容\r\n```\r\n% bundle exec rake test\r\n/Users/ippe/.rbenv/versions/2.2.2/bin/ruby -I/Users/ippe/sezemi/oss_hach_beginners/jpmobile/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.3.1/lib:/Users/ippe/sezemi/oss_hach_beginners/jpmobile/vendor/bundle/ruby/2.2.0/gems/rspec-support-3.3.0/lib /Users/ippe/sezemi/oss_hach_beginners/jpmobile/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.3.1/exe/rspec --pattern spec/unit/\\*\\*/\\*_spec.rb\r\nRun options:\r\n  include {:focus=>true}\r\n  exclude {:broken=>true}\r\n\r\nAll examples were filtered out; ignoring {:focus=>true}\r\n.........................................................................................................................................................................F.....................................................................................................................................................\r\n\r\nFailures:\r\n\r\n  1) Jpmobile::Mail delivering delivers through SMTP\r\n     Failure/Error: expect {\r\n       expected no Exception, got #<Errno::ECONNREFUSED: Connection refused - connect(2) for \"localhost\" port 25> with backtrace:\r\n         # ./vendor/bundle/ruby/2.2.0/gems/mail-2.6.3/lib/mail/network/delivery_methods/smtp.rb:112:in `deliver!'\r\n         # ./vendor/bundle/ruby/2.2.0/gems/mail-2.6.3/lib/mail/message.rb:2141:in `do_delivery'\r\n         # ./vendor/bundle/ruby/2.2.0/gems/mail-2.6.3/lib/mail/message.rb:238:in `deliver'\r\n         # ./spec/unit/mail_spec.rb:347:in `block (4 levels) in <top (required)>'\r\n         # ./spec/unit/mail_spec.rb:346:in `block (3 levels) in <top (required)>'\r\n     # ./spec/unit/mail_spec.rb:346:in `block (3 levels) in <top (required)>'\r\n\r\nFinished in 1.01 seconds (files took 0.56696 seconds to load)\r\n319 examples, 1 failure\r\n\r\nFailed examples:\r\n\r\nrspec ./spec/unit/mail_spec.rb:344 # Jpmobile::Mail delivering delivers through SMTP\r\n\r\n/Users/ippe/.rbenv/versions/2.2.2/bin/ruby -I/Users/ippe/sezemi/oss_hach_beginners/jpmobile/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.3.1/lib:/Users/ippe/sezemi/oss_hach_beginners/jpmobile/vendor/bundle/ruby/2.2.0/gems/rspec-support-3.3.0/lib /Users/ippe/sezemi/oss_hach_beginners/jpmobile/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.3.1/exe/rspec --pattern spec/unit/\\*\\*/\\*_spec.rb failed\r\n```\r\n\r\n#### 解決法\r\nローカルホストに開発用SMTPサーバーをたてると成功した\r\nhttp://aqubiblog.blogspot.jp/2009/03/macsmtp.html"}}