Sha256: 9f4f45246d9b5ca01480b702295ea1b30c885f42562a4292824c87a3af9d961c

Contents?: true

Size: 367 Bytes

Versions: 32

Compression:

Stored size: 367 Bytes

Contents

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

32 entries across 32 versions & 1 rubygems

Version Path
groupdocs-1.4.0 spec/support/shared_examples/api/helpers/status_helper.rb
groupdocs-1.3.0 spec/support/shared_examples/api/helpers/status_helper.rb
groupdocs-1.2.11 spec/support/shared_examples/api/helpers/status_helper.rb
groupdocs-1.2.10 spec/support/shared_examples/api/helpers/status_helper.rb
groupdocs-1.2.9 spec/support/shared_examples/api/helpers/status_helper.rb
groupdocs-1.2.8 spec/support/shared_examples/api/helpers/status_helper.rb
groupdocs-1.2.7 spec/support/shared_examples/api/helpers/status_helper.rb
groupdocs-1.2.6 spec/support/shared_examples/api/helpers/status_helper.rb
groupdocs-1.2.3 spec/support/shared_examples/api/helpers/status_helper.rb
groupdocs-1.2.2 spec/support/shared_examples/api/helpers/status_helper.rb
groupdocs-1.2.1 spec/support/shared_examples/api/helpers/status_helper.rb
groupdocs-1.2.0 spec/support/shared_examples/api/helpers/status_helper.rb