Sha256: 89b7cd3a6069927c6b333bdfcdd44fc9504ef0f7269226e22a607c258d6d4a36
Contents?: true
Size: 960 Bytes
Versions: 10
Compression:
Stored size: 960 Bytes
Contents
require File.expand_path('../../spec_helper',__FILE__) describe BrowseEverything::FileEntry do let(:mtime) { Time.now } subject { BrowseEverything::FileEntry.new( 'file_id_01234', 'my_provider:/location/pa/th/file.m4v', 'file.m4v', '1.2 GB', mtime, false ) } it "should be a BrowseEverything::FileEntry" do expect(subject).to be_a BrowseEverything::FileEntry end it "#id" do expect(subject.id).to eq("file_id_01234") end it "#location" do expect(subject.location).to eq("my_provider:/location/pa/th/file.m4v") end it "#name" do expect(subject.name).to eq("file.m4v") end it "#size" do expect(subject.size).to eq("1.2 GB") end it "#mtime" do expect(subject.mtime).to eq(mtime) end it "#type" do expect(subject.type).to eq("video/mp4") end it "#container?" do expect(subject.container?).to be_false end end
Version data entries
10 entries across 10 versions & 1 rubygems