title: Rspec's include matcher, beetwen Hash and String objects
body: <p>How can I check with Rspec, if all the fields in a Hash object :</p>
  
  <pre><code>{"id"=&gt;5392501, "owner"=&gt;"cainlevy", "name"=&gt;"photor", "url"=&gt;"https://api.github.com/repos/cainlevy/photor", "description"=&gt;"Photo Organizer (in Ruby)", "created_at"=&gt;"2012-08-12T22:26:08Z", "pushed_at"=&gt;"2013-02-19T03:11:10Z", "organization"=&gt;"User", "full_name"=&gt;"cainlevy/photor", "language"=&gt;"Ruby", "updated_at"=&gt;"2013-03-13T02:05:33Z"}
  </code></pre>
  
  <p>are <strong>INCLUDED</strong> in a superset of filds which is a String object :</p>
  
  <pre><code>{"id":5392501,"name":"photor","full_name":"cainlevy/photor","owner":{"login":"cainlevy","id":4449,"avatar_url":"https://secure.gravatar.com/avatar/2573ddee29779e76b7da7d3c2c9ff18d?d=https://a248.e.akamai.net},"private":false,"html_url":"https://github.com/cainlevy/photor","description":"Photo Organizer (in Ruby)","fork":false,"created_at":"2012-08-12T22:26:08Z","updated_at":"2013-03-13T02:05:33Z","pushed_at":"2013-02-19T03:11:10Z","git_url":"git://github.com/cainlevy/photor.git","ssh_url":"git@github.com:cainlevy/photor.git","clone_url":"https://github.com/cainlevy/photor.git","svn_url":"https://github.com/cainlevy/photor","homepage":null,"size":312,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":4,"master_branch":"master","default_branch":"master"}
  </code></pre>
  
  <p>currently I'm going with <code>fixture_repos[0].to_json.should include compared</code> where </p>
  
  <pre><code>fixture_repos[0].to_json.class: String 
  </code></pre>
  
  <p>and </p>
  
  <pre><code>compared.class: Hash 
  </code></pre>
  
  <p>and I get the following Failures:</p>
  
  <pre><code>no implicit conversion of Hash into String
  </code></pre>
  
  <p>which apparently I can't get rid off by conferting string to hash : </p>
  
  <pre><code>fixture_repos[0].to_json.to_h
  </code></pre>
  
  <p>or vice versa </p>
  
  <pre><code>compared.to_s
  </code></pre>
  
  <p><strong>UPDATE</strong>, here it is the full spec:</p>
  
  <pre><code>require "spec_helper"
    describe Elasticrepo::Extractor do
      let(:fixture_repos)  { Yajl::Parser.parse(fixture("repositories.json").read) }
  
      context "GET /users/:user/starred" do
        describe "#extract" do 
            let(:compared ) {Yajl::Parser.parse(fixture("live_extracted.repos[0].to_json").read) }
  
            it "includes compared fields" do
              fixture_repos[0].to_json.should include compared
            end
        end
      end 
    end 
  end
  </code></pre>