fix rspec deprecation warnings

Fix 2 rspec deprecation warnings.

- `X.stub(:y)` is now `allow(X).to receive(:y)`
- As of 3.0, config param `treat_symbols_as_metadata_keys_with_true_values` is no longer needed