title: Rspec test keeps failing when passing in a named parameter
body: <p>Sorry in advance....noob question.</p>
  
  <p>I am writing a class to satisfy an Rspec test. It's a test to initialize a class and pass in a string parameter.
  My challenge is that the test is passing in a name parameter, and the output keeps failing my test.</p>
  
  <p>Code Below.</p>
  
  <p>My class</p>
  
  <pre><code>module Human
    class Person
      attr_reader :name
  
      def initialize(name)
         @name = name
      end
    end
  end
  </code></pre>
  
  <p>My Test</p>
  
  <pre><code>RSpec.describe Person::Name do
    subject { described_class.new(name: "Hi my name is peter") }
  
    it "has a name" do
      expect(subject.name).to eq("Hi my name is peter")
    end
  </code></pre>
  
  <p>The Result</p>
  
  <pre><code>Human::Person has a name
       Failure/Error: expect(subject.name).to eq("Hi my name is peter")
  
         expected: "Hi my name is peter"
              got: {:name=&gt;"Hi my name is peter"}
  
         (compared using ==)
  </code></pre>
  
  <p>My problem is my class is working, but my output is formatted differently <code>{:name=&gt;"Hi my name is peter"}</code>....it should be<code>"Hi my name is peter"</code></p>
  
  <p>How do I get my class to return the string output as expected by my test?</p>