Division with if condition : <p>I just start learning ruby with an online course and in my very first exercise, I can't complete the challenge. I have to create functions to sum, subtract, multiply and divide that meet the specs conditions.</p>

<p>For the division, I need to check if it will divide per 0 or not, give the result or a warning. My code is </p>

<pre><code>def divisao(primeiro_numero, segundo_numero)
    if segundo_numero &gt; 0
        primeiro_numero / segundo_numero
    else
        puts 'Opa! Zero como divisor'
end
</code></pre>

<p>But when I run the specs, I get the following warning</p>

<pre><code>0 examples, 0 failures, 1 error occurred outside of examples
</code></pre>

<p>I have changed all the functions, but this one doesn't seem to work. 
I added the complete functions and specs file here:<a href="https://gist.github.com/isafloriano/86c170400b2f5fc63dc5e8edd8913525" rel="nofollow noreferrer">https://gist.github.com/isafloriano/86c170400b2f5fc63dc5e8edd8913525</a></p>

<p>Can anyone give me a clue why this doesn't work?</p>
