{"action":"created","issue":{"url":"https://api.github.com/repos/pokotyan/protospace/issues/18","repository_url":"https://api.github.com/repos/pokotyan/protospace","labels_url":"https://api.github.com/repos/pokotyan/protospace/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/pokotyan/protospace/issues/18/comments","events_url":"https://api.github.com/repos/pokotyan/protospace/issues/18/events","html_url":"https://github.com/pokotyan/protospace/pull/18","id":184616022,"number":18,"title":"[WIP]Rspec featureテスト","user":{"login":"pokotyan","id":20484619,"avatar_url":"https://avatars.githubusercontent.com/u/20484619?v=3","gravatar_id":"","url":"https://api.github.com/users/pokotyan","html_url":"https://github.com/pokotyan","followers_url":"https://api.github.com/users/pokotyan/followers","following_url":"https://api.github.com/users/pokotyan/following{/other_user}","gists_url":"https://api.github.com/users/pokotyan/gists{/gist_id}","starred_url":"https://api.github.com/users/pokotyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pokotyan/subscriptions","organizations_url":"https://api.github.com/users/pokotyan/orgs","repos_url":"https://api.github.com/users/pokotyan/repos","events_url":"https://api.github.com/users/pokotyan/events{/privacy}","received_events_url":"https://api.github.com/users/pokotyan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-22T07:41:08Z","updated_at":"2016-10-24T08:29:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pokotyan/protospace/pulls/18","html_url":"https://github.com/pokotyan/protospace/pull/18","diff_url":"https://github.com/pokotyan/protospace/pull/18.diff","patch_url":"https://github.com/pokotyan/protospace/pull/18.patch"},"body":"# WHAT\r\nfeatureテストの追加\r\n\r\n# WHY\r\nアプリケーションの実際の使われ方をシミュレートし、統合的にテストするため"},"comment":{"url":"https://api.github.com/repos/pokotyan/protospace/issues/comments/255678870","html_url":"https://github.com/pokotyan/protospace/pull/18#issuecomment-255678870","issue_url":"https://api.github.com/repos/pokotyan/protospace/issues/18","id":255678870,"user":{"login":"pokotyan","id":20484619,"avatar_url":"https://avatars.githubusercontent.com/u/20484619?v=3","gravatar_id":"","url":"https://api.github.com/users/pokotyan","html_url":"https://github.com/pokotyan","followers_url":"https://api.github.com/users/pokotyan/followers","following_url":"https://api.github.com/users/pokotyan/following{/other_user}","gists_url":"https://api.github.com/users/pokotyan/gists{/gist_id}","starred_url":"https://api.github.com/users/pokotyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pokotyan/subscriptions","organizations_url":"https://api.github.com/users/pokotyan/orgs","repos_url":"https://api.github.com/users/pokotyan/repos","events_url":"https://api.github.com/users/pokotyan/events{/privacy}","received_events_url":"https://api.github.com/users/pokotyan/received_events","type":"User","site_admin":false},"created_at":"2016-10-24T08:29:31Z","updated_at":"2016-10-24T08:29:31Z","body":"サインインからプロトタイプの投稿のフィーチャーテストを作成しようとしており\r\nサインインの部分がうまくいきません。\r\n\r\n![default](https://cloud.githubusercontent.com/assets/20484619/19638474/17fb349a-9a0f-11e6-89db-4dfcf01a2234.gif)\r\n\r\n\r\n\r\nbinding.pryで確認してみてもユーザーは作成されており、バリデーションエラーもありません。\r\n\r\nsogatomohiro-no-MacBook-Air:protospace sogatomohiro$ bundle exec rspec spec/features/post_prototype_spec.rb\r\n\r\npost_prototype\r\n\r\nFrom: /Users/sogatomohiro/projects/protospace/spec/features/post_prototype_spec.rb @ line 8 :\r\n\r\n     3: RSpec.feature 'post_prototype', type: :feature do\r\n     4: \r\n     5:   given!(:user) { create(:user) }\r\n     6: \r\n     7:   scenario 'post_prototype', js: true do\r\n =>  8:     binding.pry\r\n     9:     visit root_path\r\n    10:     find('.navbar-btn').click\r\n    11:     fill_in 'E-Mail address', with: user.email\r\n    12:     fill_in 'Password', with: user.password\r\n    13:     click_on \"Sign in\"\r\n\r\n[1] pry(#<RSpec::ExampleGroups::PostPrototype>)> User.all\r\n=> [#<User id: 1, email: \"caleigh.tremblay@turcotte.org\", created_at: \"2016-10-24 08:20:51\", updated_at: \"2016-10-24 08:20:51\", name: \"soga\", member: nil, profile: nil, works: nil, avatar: nil>]\r\n[2] pry(#<RSpec::ExampleGroups::PostPrototype>)> \r\n[3] pry(#<RSpec::ExampleGroups::PostPrototype>)> User.first.errors\r\n=> #<ActiveModel::Errors:0x007fd751091ca0\r\n @base=\r\n  #<User id: 1, email: \"caleigh.tremblay@turcotte.org\", created_at: \"2016-10-24 08:20:51\", updated_at: \"2016-10-24 08:20:51\", name: \"soga\", member: nil, profile: nil, works: nil, avatar: nil>,\r\n @messages={}>\r\n[4] pry(#<RSpec::ExampleGroups::PostPrototype>)> \r\n[5] pry(#<RSpec::ExampleGroups::PostPrototype>)> User.first.errors.full_messages\r\n=> []\r\n[6] pry(#<RSpec::ExampleGroups::PostPrototype>)> "}}
{"actor":{"display_login":"pokotyan"}}