Sha256: 67cc2407afab77e823da8c3bd7ac6ad9d681111b60ad8e91e370601758a26465

Contents?: true

Size: 379 Bytes

Versions: 32

Compression:

Stored size: 379 Bytes

Contents

shared_examples_for GroupDocs::Api::Helpers::AccessMode do
  it { should have_accessor(: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

32 entries across 32 versions & 1 rubygems

Version Path
groupdocs-2.2.0 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-2.1.0 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-2.0.0 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-1.9.0 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-1.8.1 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-1.8.0 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-1.7.0 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-1.6.0 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-1.5.9 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-1.5.8 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-1.5.7 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-1.5.6 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-1.5.5 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-1.5.4 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-1.5.3 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-1.5.2 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-1.5.1 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-1.5.0 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-1.4.2 spec/support/shared_examples/api/helpers/access_mode_helper.rb
groupdocs-1.4.1 spec/support/shared_examples/api/helpers/access_mode_helper.rb