shared_examples_for GroupDocs::Api::Helpers::AccessMode do it { should respond_to(:access) } it { should respond_to(:access=) } describe '#access' do it 'returns converted to human-readable format access mode' do subject.should_receive(:parse_access_mode).with('Restricted').and_return(:restricted) subject.access = 'Restricted' subject.access.should == :restricted end end end