{"id":5874,"date":"2014-04-07T23:40:29","date_gmt":"2014-04-07T23:40:29","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/07\/rspec-expect-syntax-syntax-error-unexpected-tassoc-expecting-collection-of-common-programming-errors\/"},"modified":"2014-04-07T23:40:29","modified_gmt":"2014-04-07T23:40:29","slug":"rspec-expect-syntax-syntax-error-unexpected-tassoc-expecting-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/07\/rspec-expect-syntax-syntax-error-unexpected-tassoc-expecting-collection-of-common-programming-errors\/","title":{"rendered":"rspec (expect syntax) &#8211; syntax error, unexpected tASSOC, expecting &#39;}&#39;-Collection of common programming errors"},"content":{"rendered":"<p>Switching to the new expect() syntax.<\/p>\n<p>getting<\/p>\n<pre><code>syntax error, unexpected tASSOC, expecting '}' (SyntaxError)\n<\/code><\/pre>\n<p>for this:<\/p>\n<pre><code>expect(subject.crumbs.last.data).to eq {:foo =&gt; :bar }\n<\/code><\/pre>\n<p>How to fix this syntax error?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Switching to the new expect() syntax. getting syntax error, unexpected tASSOC, expecting &#8216;}&#8217; (SyntaxError) for this: expect(subject.crumbs.last.data).to eq {:foo =&gt; :bar } How to fix this syntax error?<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5874","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5874","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5874"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5874\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5874"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5874"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}