rspec 配列include

require 'rails_helper'

describe 'test' do
  it 'test' do
    expected_array = [1,2]
    expect([1,2,3]).to include *expected_array
  end
end