Sha256: 727050e5869ec433ec08c7b24118b9d08158340946017048e3a1731e989d11bd
Contents?: true
Size: 586 Bytes
Versions: 2
Compression:
Stored size: 586 Bytes
Contents
require "spec_helper" RSpec.describe Ribose::FileVersion do describe ".fetch" do it "retrieves the details of a file version" do file_id = 123_456 space_id = 456_789 version_id = 789_012 stub_ribose_file_version_fetch_api(space_id, file_id, version_id) file_version = Ribose::FileVersion.fetch( space_id: space_id, file_id: file_id, version_id: version_id, ) expect(file_version.version).to eq(1) expect(file_version.author).to eq("John Doe") expect(file_version.current_version_id).to eq(789012) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ribose-0.3.2 | spec/ribose/file_version_spec.rb |
ribose-0.3.1 | spec/ribose/file_version_spec.rb |