spec/rspec/mocks/space_spec.rb in rspec-mocks-2.99.0.beta1 vs spec/rspec/mocks/space_spec.rb in rspec-mocks-2.99.0.beta2
- old
+ new
@@ -3,9 +3,10 @@
module RSpec::Mocks
describe Space do
describe "#proxies_of(klass)" do
let(:space) { Space.new }
+ before { space.outside_example = false }
it 'returns proxies' do
space.proxy_for("")
expect(space.proxies_of(String).map(&:class)).to eq([Proxy])
end