rspec hash include

以下の方法で含んでいるかの確認ができる

require 'rails_helper'

describe 'test' do
  it 'test' do
    hash_correct = {:name=>"hello"}
    expect({:name=>"hello", :age=>35}).to include hash_correct
  end
end