Sha256: 8ef29fd1c634f80082a94947948b01d229254d25b3fae000e2f68acebff3b7e7
Contents?: true
Size: 624 Bytes
Versions: 17
Compression:
Stored size: 624 Bytes
Contents
RSpec.describe LessonsIndexer::Models::Heading do let(:name) {'lesson1.2.jpg'} subject {described_class.new(name)} specify "#file_name" do expect(subject.file_name).to eq(name) end specify "#path" do expect(subject.path).to eq(File.expand_path(name)) end specify "#major" do expect(subject.major).to eq(1) end specify "#minor" do expect(subject.minor).to eq(2) end context "comparable" do let(:other_heading) {described_class.new('lesson2.5.jpg')} it "should be comparable" do expect(subject < other_heading).to be_truthy end end end
Version data entries
17 entries across 17 versions & 1 rubygems