{"action":"created","comment":{"url":"https://api.github.com/repos/damwhit/the_pivot/pulls/comments/57991506","id":57991506,"diff_hunk":"@@ -1,35 +1,57 @@\n-require 'spec_helper'\n+require 'rails_helper'\n \n-RSpec.describe OrderMailer do\n+\n+RSpec.describe \"OrderMailer\" do\n   describe 'email' do\n     before :each do\n-      pending\n       @user = User.create(fullname: \"Lucas Jones\", password: \"password\", email: \"lucas@email.com\")\n \n-      Category.create(name: \"coffee\")\n+      seller = User.create(fullname: \"Bob Poo\", password: \"password\", email: \"bob@email.com\")\n+\n+      venue = Venue.find_or_create_by!(name: \"Neat Ampitheatre\", city: \"Des Moines\", state: \"Iowa\")\n+\n+      category = Category.create(name: \"concerts\")\n+\n+      event = category.events.create!(\n+        name: \"Sun Festival\",\n+        venue_id: venue.id,\n+        time: \"March 02, 2017 16:00\",\n+        status: \"active\")\n+\n+      ticket1 = Ticket.new(price: 800, seat: \"80\", row: \"20\")\n+\n+      listing_1 = event.listings.new(user_id: seller.id)\n+      listing_1.tickets << ticket1\n+      listing_1.save\n \n-      Product.create(name: \"test\", price: 23, description: \"test\", category_id: Category.last.id)\n+      @order = @user.orders.create(street: \"1600 pennslyvania\",\n+                                  city: \"washington\",\n+                                  state: \"District of Columbia\",\n+                                  zip: \"46250\",\n+                                  fullname: \"Lucas Jones\",\n+                                  first_name: \"jonathon\",\n+                                  last_name: \"adams\",\n+                                  email: @user.email)\n \n-      @order = Order.create(first_name: 'Lucas', last_name: \"Jones\", street: \"123 St.\", city: \"Denver\", state: \"CO\", zip: \"80209\", user_id: User.last.id, email: 'lucas@email.com', fullname: \"Lucas Jones\", order_total: \"40\")\n+      @order.tickets << ticket1\n \n-      @order.order_products.create(product_id: Product.last.id, order_id: Order.last.id, quantity: 1)\n     end\n \n     let(:mail) { OrderMailer.order_email(@order) }\n \n-    xit 'renders the subject' do\n-      expect(mail.subject).to eql('🎉Alright, Alright, Alright. Your joe is on the way!🎉')\n+    it 'renders the subject' do\n+      expect(mail.subject).to eql('🎉Here is your ticket receipt!🎉')\n     end\n \n-    xit 'renders the receiver email' do\n+    it 'renders the receiver email' do\n       expect(mail.to).to eql([@user.email])\n     end\n \n-    xit 'renders the sender email' do\n-      expect(mail.from).to eql(['littleowlturing@gmail.com'])\n+    it 'renders the sender email' do","path":"spec/mailers/order_mailer_spec.rb","position":62,"original_position":62,"commit_id":"b57c97e9af3f5379916144b243f1c66adb572934","original_commit_id":"b57c97e9af3f5379916144b243f1c66adb572934","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2016-03-31T01:46:47Z","updated_at":"2016-03-31T01:46:47Z","html_url":"https://github.com/damwhit/the_pivot/pull/72#discussion_r57991506","pull_request_url":"https://api.github.com/repos/damwhit/the_pivot/pulls/72","_links":{"self":{"href":"https://api.github.com/repos/damwhit/the_pivot/pulls/comments/57991506"},"html":{"href":"https://github.com/damwhit/the_pivot/pull/72#discussion_r57991506"},"pull_request":{"href":"https://api.github.com/repos/damwhit/the_pivot/pulls/72"}}},"pull_request":{"url":"https://api.github.com/repos/damwhit/the_pivot/pulls/72","id":64723621,"html_url":"https://github.com/damwhit/the_pivot/pull/72","diff_url":"https://github.com/damwhit/the_pivot/pull/72.diff","patch_url":"https://github.com/damwhit/the_pivot/pull/72.patch","issue_url":"https://api.github.com/repos/damwhit/the_pivot/issues/72","number":72,"state":"open","locked":false,"title":"User mailer","user":{"login":"cheljoh","id":14203424,"avatar_url":"https://avatars.githubusercontent.com/u/14203424?v=3","gravatar_id":"","url":"https://api.github.com/users/cheljoh","html_url":"https://github.com/cheljoh","followers_url":"https://api.github.com/users/cheljoh/followers","following_url":"https://api.github.com/users/cheljoh/following{/other_user}","gists_url":"https://api.github.com/users/cheljoh/gists{/gist_id}","starred_url":"https://api.github.com/users/cheljoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cheljoh/subscriptions","organizations_url":"https://api.github.com/users/cheljoh/orgs","repos_url":"https://api.github.com/users/cheljoh/repos","events_url":"https://api.github.com/users/cheljoh/events{/privacy}","received_events_url":"https://api.github.com/users/cheljoh/received_events","type":"User","site_admin":false},"body":"Users now receive an email after placing an order.","created_at":"2016-03-31T01:46:43Z","updated_at":"2016-03-31T01:46:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2587ec288a50e72ab484bf9d6648d04f90f9e4a3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/damwhit/the_pivot/pulls/72/commits","review_comments_url":"https://api.github.com/repos/damwhit/the_pivot/pulls/72/comments","review_comment_url":"https://api.github.com/repos/damwhit/the_pivot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/damwhit/the_pivot/issues/72/comments","statuses_url":"https://api.github.com/repos/damwhit/the_pivot/statuses/b57c97e9af3f5379916144b243f1c66adb572934","head":{"label":"damwhit:user_mailer","ref":"user_mailer","sha":"b57c97e9af3f5379916144b243f1c66adb572934","user":{"login":"damwhit","id":13105577,"avatar_url":"https://avatars.githubusercontent.com/u/13105577?v=3","gravatar_id":"","url":"https://api.github.com/users/damwhit","html_url":"https://github.com/damwhit","followers_url":"https://api.github.com/users/damwhit/followers","following_url":"https://api.github.com/users/damwhit/following{/other_user}","gists_url":"https://api.github.com/users/damwhit/gists{/gist_id}","starred_url":"https://api.github.com/users/damwhit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damwhit/subscriptions","organizations_url":"https://api.github.com/users/damwhit/orgs","repos_url":"https://api.github.com/users/damwhit/repos","events_url":"https://api.github.com/users/damwhit/events{/privacy}","received_events_url":"https://api.github.com/users/damwhit/received_events","type":"User","site_admin":false},"repo":{"id":54416830,"name":"the_pivot","full_name":"damwhit/the_pivot","owner":{"login":"damwhit","id":13105577,"avatar_url":"https://avatars.githubusercontent.com/u/13105577?v=3","gravatar_id":"","url":"https://api.github.com/users/damwhit","html_url":"https://github.com/damwhit","followers_url":"https://api.github.com/users/damwhit/followers","following_url":"https://api.github.com/users/damwhit/following{/other_user}","gists_url":"https://api.github.com/users/damwhit/gists{/gist_id}","starred_url":"https://api.github.com/users/damwhit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damwhit/subscriptions","organizations_url":"https://api.github.com/users/damwhit/orgs","repos_url":"https://api.github.com/users/damwhit/repos","events_url":"https://api.github.com/users/damwhit/events{/privacy}","received_events_url":"https://api.github.com/users/damwhit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/damwhit/the_pivot","description":null,"fork":false,"url":"https://api.github.com/repos/damwhit/the_pivot","forks_url":"https://api.github.com/repos/damwhit/the_pivot/forks","keys_url":"https://api.github.com/repos/damwhit/the_pivot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/damwhit/the_pivot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/damwhit/the_pivot/teams","hooks_url":"https://api.github.com/repos/damwhit/the_pivot/hooks","issue_events_url":"https://api.github.com/repos/damwhit/the_pivot/issues/events{/number}","events_url":"https://api.github.com/repos/damwhit/the_pivot/events","assignees_url":"https://api.github.com/repos/damwhit/the_pivot/assignees{/user}","branches_url":"https://api.github.com/repos/damwhit/the_pivot/branches{/branch}","tags_url":"https://api.github.com/repos/damwhit/the_pivot/tags","blobs_url":"https://api.github.com/repos/damwhit/the_pivot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/damwhit/the_pivot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/damwhit/the_pivot/git/refs{/sha}","trees_url":"https://api.github.com/repos/damwhit/the_pivot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/damwhit/the_pivot/statuses/{sha}","languages_url":"https://api.github.com/repos/damwhit/the_pivot/languages","stargazers_url":"https://api.github.com/repos/damwhit/the_pivot/stargazers","contributors_url":"https://api.github.com/repos/damwhit/the_pivot/contributors","subscribers_url":"https://api.github.com/repos/damwhit/the_pivot/subscribers","subscription_url":"https://api.github.com/repos/damwhit/the_pivot/subscription","commits_url":"https://api.github.com/repos/damwhit/the_pivot/commits{/sha}","git_commits_url":"https://api.github.com/repos/damwhit/the_pivot/git/commits{/sha}","comments_url":"https://api.github.com/repos/damwhit/the_pivot/comments{/number}","issue_comment_url":"https://api.github.com/repos/damwhit/the_pivot/issues/comments{/number}","contents_url":"https://api.github.com/repos/damwhit/the_pivot/contents/{+path}","compare_url":"https://api.github.com/repos/damwhit/the_pivot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/damwhit/the_pivot/merges","archive_url":"https://api.github.com/repos/damwhit/the_pivot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/damwhit/the_pivot/downloads","issues_url":"https://api.github.com/repos/damwhit/the_pivot/issues{/number}","pulls_url":"https://api.github.com/repos/damwhit/the_pivot/pulls{/number}","milestones_url":"https://api.github.com/repos/damwhit/the_pivot/milestones{/number}","notifications_url":"https://api.github.com/repos/damwhit/the_pivot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/damwhit/the_pivot/labels{/name}","releases_url":"https://api.github.com/repos/damwhit/the_pivot/releases{/id}","deployments_url":"https://api.github.com/repos/damwhit/the_pivot/deployments","created_at":"2016-03-21T19:29:55Z","updated_at":"2016-03-21T19:46:29Z","pushed_at":"2016-03-31T01:46:43Z","git_url":"git://github.com/damwhit/the_pivot.git","ssh_url":"git@github.com:damwhit/the_pivot.git","clone_url":"https://github.com/damwhit/the_pivot.git","svn_url":"https://github.com/damwhit/the_pivot","homepage":null,"size":54114,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":23,"forks":0,"open_issues":23,"watchers":0,"default_branch":"master"}},"base":{"label":"damwhit:master","ref":"master","sha":"9813a5236088e1bb687d4f13f943f5488ac524a5","user":{"login":"damwhit","id":13105577,"avatar_url":"https://avatars.githubusercontent.com/u/13105577?v=3","gravatar_id":"","url":"https://api.github.com/users/damwhit","html_url":"https://github.com/damwhit","followers_url":"https://api.github.com/users/damwhit/followers","following_url":"https://api.github.com/users/damwhit/following{/other_user}","gists_url":"https://api.github.com/users/damwhit/gists{/gist_id}","starred_url":"https://api.github.com/users/damwhit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damwhit/subscriptions","organizations_url":"https://api.github.com/users/damwhit/orgs","repos_url":"https://api.github.com/users/damwhit/repos","events_url":"https://api.github.com/users/damwhit/events{/privacy}","received_events_url":"https://api.github.com/users/damwhit/received_events","type":"User","site_admin":false},"repo":{"id":54416830,"name":"the_pivot","full_name":"damwhit/the_pivot","owner":{"login":"damwhit","id":13105577,"avatar_url":"https://avatars.githubusercontent.com/u/13105577?v=3","gravatar_id":"","url":"https://api.github.com/users/damwhit","html_url":"https://github.com/damwhit","followers_url":"https://api.github.com/users/damwhit/followers","following_url":"https://api.github.com/users/damwhit/following{/other_user}","gists_url":"https://api.github.com/users/damwhit/gists{/gist_id}","starred_url":"https://api.github.com/users/damwhit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damwhit/subscriptions","organizations_url":"https://api.github.com/users/damwhit/orgs","repos_url":"https://api.github.com/users/damwhit/repos","events_url":"https://api.github.com/users/damwhit/events{/privacy}","received_events_url":"https://api.github.com/users/damwhit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/damwhit/the_pivot","description":null,"fork":false,"url":"https://api.github.com/repos/damwhit/the_pivot","forks_url":"https://api.github.com/repos/damwhit/the_pivot/forks","keys_url":"https://api.github.com/repos/damwhit/the_pivot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/damwhit/the_pivot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/damwhit/the_pivot/teams","hooks_url":"https://api.github.com/repos/damwhit/the_pivot/hooks","issue_events_url":"https://api.github.com/repos/damwhit/the_pivot/issues/events{/number}","events_url":"https://api.github.com/repos/damwhit/the_pivot/events","assignees_url":"https://api.github.com/repos/damwhit/the_pivot/assignees{/user}","branches_url":"https://api.github.com/repos/damwhit/the_pivot/branches{/branch}","tags_url":"https://api.github.com/repos/damwhit/the_pivot/tags","blobs_url":"https://api.github.com/repos/damwhit/the_pivot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/damwhit/the_pivot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/damwhit/the_pivot/git/refs{/sha}","trees_url":"https://api.github.com/repos/damwhit/the_pivot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/damwhit/the_pivot/statuses/{sha}","languages_url":"https://api.github.com/repos/damwhit/the_pivot/languages","stargazers_url":"https://api.github.com/repos/damwhit/the_pivot/stargazers","contributors_url":"https://api.github.com/repos/damwhit/the_pivot/contributors","subscribers_url":"https://api.github.com/repos/damwhit/the_pivot/subscribers","subscription_url":"https://api.github.com/repos/damwhit/the_pivot/subscription","commits_url":"https://api.github.com/repos/damwhit/the_pivot/commits{/sha}","git_commits_url":"https://api.github.com/repos/damwhit/the_pivot/git/commits{/sha}","comments_url":"https://api.github.com/repos/damwhit/the_pivot/comments{/number}","issue_comment_url":"https://api.github.com/repos/damwhit/the_pivot/issues/comments{/number}","contents_url":"https://api.github.com/repos/damwhit/the_pivot/contents/{+path}","compare_url":"https://api.github.com/repos/damwhit/the_pivot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/damwhit/the_pivot/merges","archive_url":"https://api.github.com/repos/damwhit/the_pivot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/damwhit/the_pivot/downloads","issues_url":"https://api.github.com/repos/damwhit/the_pivot/issues{/number}","pulls_url":"https://api.github.com/repos/damwhit/the_pivot/pulls{/number}","milestones_url":"https://api.github.com/repos/damwhit/the_pivot/milestones{/number}","notifications_url":"https://api.github.com/repos/damwhit/the_pivot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/damwhit/the_pivot/labels{/name}","releases_url":"https://api.github.com/repos/damwhit/the_pivot/releases{/id}","deployments_url":"https://api.github.com/repos/damwhit/the_pivot/deployments","created_at":"2016-03-21T19:29:55Z","updated_at":"2016-03-21T19:46:29Z","pushed_at":"2016-03-31T01:46:43Z","git_url":"git://github.com/damwhit/the_pivot.git","ssh_url":"git@github.com:damwhit/the_pivot.git","clone_url":"https://github.com/damwhit/the_pivot.git","svn_url":"https://github.com/damwhit/the_pivot","homepage":null,"size":54114,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":23,"forks":0,"open_issues":23,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/damwhit/the_pivot/pulls/72"},"html":{"href":"https://github.com/damwhit/the_pivot/pull/72"},"issue":{"href":"https://api.github.com/repos/damwhit/the_pivot/issues/72"},"comments":{"href":"https://api.github.com/repos/damwhit/the_pivot/issues/72/comments"},"review_comments":{"href":"https://api.github.com/repos/damwhit/the_pivot/pulls/72/comments"},"review_comment":{"href":"https://api.github.com/repos/damwhit/the_pivot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/damwhit/the_pivot/pulls/72/commits"},"statuses":{"href":"https://api.github.com/repos/damwhit/the_pivot/statuses/b57c97e9af3f5379916144b243f1c66adb572934"}}}}