Sha256: 7337102b9fc8fd208f91769e7fc5c08b4357326e248dbbe15bd67f1a0a1c3a23

Contents?: true

Size: 372 Bytes

Versions: 14

Compression:

Stored size: 372 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(0).and_return(:pending)
      subject.status = 0
      subject.status.should == :pending
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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