Sha256: ee79e7e163d3eb9d73f0cae623e2b0b686f157474aabb24c85ff960272a3b796
Contents?: true
Size: 516 Bytes
Versions: 4
Compression:
Stored size: 516 Bytes
Contents
require 'spec_helper' describe RailsAdmin::Config::Proxyable::Proxy do class ProxyTest attr_reader :bindings def initialize @bindings = {foo: 'bar'} end end let(:proxy_test) { ProxyTest.new } subject { RailsAdmin::Config::Proxyable::Proxy.new proxy_test, foo: 'baz' } it 'proxies method calls to @object' do expect(subject.bindings).to eq foo: 'baz' end it 'preserves initially set @bindings' do subject.bindings expect(proxy_test.bindings).to eq foo: 'bar' end end
Version data entries
4 entries across 4 versions & 1 rubygems