title: Rspec Failure/Error matching a string value
body: <p>I am trying to figure out why my rspec test fails when matching a string value.  Other tests doing similar matching are successful.</p>
  
  <p>I get the following failed result:</p>
  
  <blockquote>
    <p>1) Class #method should get the string</p>
    
    <blockquote>
  <pre><code>Failure/Error: class.method.should == "LD 513"
   expected: "LD 513"
   got: "LD 513" (using ==)
  </code></pre>
    </blockquote>
  </blockquote>
  
  <p>If I output the result to the screen, I see this which shows the value of the variable and the variable type so my assumption is that everything should pass.</p>
  
  <blockquote>
    <p>variable: "LD 513" -- String</p>
  </blockquote>
  
  <p>Any idea why this test fails?</p>
  
  <p>Thanks.</p>