Sha256: 2f4156c3345330c92359f8ab85135a8b2ded5c91226f02caab3f12c3be1b6f02

Contents?: true

Size: 392 Bytes

Versions: 11

Compression:

Stored size: 392 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(1).and_return(:restricted)
      subject.access = 1
      subject.access.should == :restricted
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
groupdocs-0.2.11 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-0.2.10 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-0.2.9 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-0.2.8 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-0.2.7 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-0.2.6 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-0.2.5 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-0.2.4 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-0.2.3 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-0.2.2 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-0.2.1 spec/support/shared_examples/api/helpers/access_mode_helper.rb