I'm testing a class raises an error

```
context 'with no office manager' do
      let(:expected_response) do
        {
            error: "No office manager"
        }
      end
      it 'returns an error' do
        expect{ subject.run }.to raise_exception(an_instance_of(StandardError).and having_attributes(expected_response))
      end
    end

```

Gets the failed test response:

```
expected Exception with an instance of StandardError and having attributes {:error => "No office manager"}, got #<StandardError: {:error=>"No office manager"}>

```

What's the correct syntax to make this pass?