15 lines
380 B
Ruby
15 lines
380 B
Ruby
require "rails_helper"
|
|
|
|
RSpec.describe VideoReleaseConfirmation do
|
|
describe "associations" do
|
|
it { is_expected.to belong_to(:releasable) }
|
|
it { is_expected.to belong_to(:video) }
|
|
end
|
|
|
|
describe "#appears_at" do
|
|
it "returns timecode string from time_elapsed" do
|
|
expect(described_class.new(time_elapsed: "5").appears_at).to eq "00:00:05:00"
|
|
end
|
|
end
|
|
end
|