Sha256: 3bd3867ea42d165b99186a8df6f91fdb78d3d78405e98a28650ba67b7a38f023

Contents?: true

Size: 453 Bytes

Versions: 17

Compression:

Stored size: 453 Bytes

Contents

RSpec.describe LessonsIndexer::Collections::LessonsList do
  subject { sample_lessons }

  context "#list" do
    it "should respond to #each" do
      expect(subject).to respond_to(:each)
    end

    it "should be sorted properly" do
      sorted_lessons = subject.sort
      %w(1.3 2.5 5.8 10.2).each_with_index do |version, index|
        expect(sorted_lessons[index].file_name).to eq "lesson#{version}.md"
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

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