Sha256: 222155fd7e9ef426e1e42c5fe3ad10daa9d3c071f034dcb7bb8e68ec23734524

Contents?: true

Size: 414 Bytes

Versions: 10

Compression:

Stored size: 414 Bytes

Contents

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
groupdocs-1.1.0 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-1.0.0 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-0.3.11 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-0.3.10 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-0.3.9 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-0.3.8 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-0.3.7 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-0.3.6 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-0.3.5 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-0.3.0 spec/support/shared_examples/api/helpers/access_mode_helper.rb