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

Version Path
lessons_indexer-1.3.0 spec/models/heading_spec.rb
lessons_indexer-1.2.2 spec/models/heading_spec.rb
lessons_indexer-1.2.1 spec/models/heading_spec.rb
lessons_indexer-1.2.0 spec/models/heading_spec.rb
lessons_indexer-1.1.0 spec/models/heading_spec.rb
lessons_indexer-1.0.3 spec/models/heading_spec.rb
lessons_indexer-1.0.2.1 spec/models/heading_spec.rb
lessons_indexer-1.0.0 spec/models/heading_spec.rb
lessons_indexer-0.3.1 spec/models/heading_spec.rb
lessons_indexer-0.3.0 spec/models/heading_spec.rb
lessons_indexer-0.2.3 spec/models/heading_spec.rb
lessons_indexer-0.2.2 spec/models/heading_spec.rb
lessons_indexer-0.2.1 spec/models/heading_spec.rb
lessons_indexer-0.2.0 spec/models/heading_spec.rb
lessons_indexer-0.1.2 spec/models/heading_spec.rb
lessons_indexer-0.1.1 spec/models/heading_spec.rb
lessons_indexer-0.1.0 spec/models/heading_spec.rb