Sha256: 25b44166893a9d127bbe5a14a09e1d397bd0abeef46a01afc9b57682f5051bec

Contents?: true

Size: 402 Bytes

Versions: 10

Compression:

Stored size: 402 Bytes

Contents

shared_examples_for GroupDocs::Api::Helpers::Status do
  it { should respond_to(:status)  }
  it { should respond_to(:status=) }

  describe '#status' do
    it 'returns converted to human-readable format status' do
      subject.should_receive(:parse_status).with('InProgress').and_return(:in_progress)
      subject.status = 'InProgress'
      subject.status.should == :in_progress
    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/status_helper.rb
groupdocs-1.0.0 spec/support/shared_examples/api/helpers/status_helper.rb
groupdocs-0.3.11 spec/support/shared_examples/api/helpers/status_helper.rb
groupdocs-0.3.10 spec/support/shared_examples/api/helpers/status_helper.rb
groupdocs-0.3.9 spec/support/shared_examples/api/helpers/status_helper.rb
groupdocs-0.3.8 spec/support/shared_examples/api/helpers/status_helper.rb
groupdocs-0.3.7 spec/support/shared_examples/api/helpers/status_helper.rb
groupdocs-0.3.6 spec/support/shared_examples/api/helpers/status_helper.rb
groupdocs-0.3.5 spec/support/shared_examples/api/helpers/status_helper.rb
groupdocs-0.3.0 spec/support/shared_examples/api/helpers/status_helper.rb