{"action":"closed","issue":{"url":"https://api.github.com/repos/learn-co-curriculum/speaking-grandma/issues/12","labels_url":"https://api.github.com/repos/learn-co-curriculum/speaking-grandma/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/learn-co-curriculum/speaking-grandma/issues/12/comments","events_url":"https://api.github.com/repos/learn-co-curriculum/speaking-grandma/issues/12/events","html_url":"https://github.com/learn-co-curriculum/speaking-grandma/issues/12","id":124026784,"number":12,"title":"Consistency in 'speaking-grandma' lab and previous lesson","user":{"login":"begreative","id":15270030,"avatar_url":"https://avatars.githubusercontent.com/u/15270030?v=3","gravatar_id":"","url":"https://api.github.com/users/begreative","html_url":"https://github.com/begreative","followers_url":"https://api.github.com/users/begreative/followers","following_url":"https://api.github.com/users/begreative/following{/other_user}","gists_url":"https://api.github.com/users/begreative/gists{/gist_id}","starred_url":"https://api.github.com/users/begreative/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/begreative/subscriptions","organizations_url":"https://api.github.com/users/begreative/orgs","repos_url":"https://api.github.com/users/begreative/repos","events_url":"https://api.github.com/users/begreative/events{/privacy}","received_events_url":"https://api.github.com/users/begreative/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-28T07:01:02Z","updated_at":"2015-12-29T14:34:47Z","closed_at":"2015-12-29T14:34:47Z","body":"Hello! - Perhaps it was only , but I was a bit confused between how we were taught to output conditional statements in 'About Ruby conditionals' and its followup lab 'speaking-grandma'.\r\n\r\nThe original code I had written to solve for the lab was as follows:\r\n```\r\ndef speak_to_grandma(phrase)\r\n  if \"#{phrase}\" == \"#{phrase}\".upcase\r\n    puts \"NO, NOT SINCE 1938!\"\r\n  else\r\n    puts \"HUH?! SPEAK UP, SONNY!\"\r\n  end\r\nend\r\n```\r\nPlease note the **puts** in the above. When I would run the code in my terminal using ```ruby grandma.rb``` and try running the test manually (i.e copying and pasting the exact phrases directly from the ```grandma_spec.rb``` and running them as the method's argument), I'd get exactly the desired results. Because everything in the previous lesson required string output be prefaced with \"puts\" or \"print\", I thought this was necessary.\r\n\r\nAfter nearly thirty minutes of trying to solve this, I finally tried it *without* the ```puts``` and as below:\r\n```\r\ndef speak_to_grandma(phrase)\r\n  if \"#{phrase}\" == \"#{phrase}\".upcase\r\n    \"NO, NOT SINCE 1938!\"\r\n  else\r\n    \"HUH?! SPEAK UP, SONNY!\"\r\n  end\r\nend\r\n```\r\n\r\nThis time it worked! (Yay!).\r\n\r\nI'm just running this by you in case others are having similar issues between the examples in the previous lesson and the requirements to pass the test. I will definitely read the tests more carefully next time, as well.\r\n\r\nThanks and I hope this helps!\r\n\r\nBeGreative"}}