Sha256: 874d90d516342f0cb02f02511e1039843555efe49dc1a1b6c36b0cc738e10589
Contents?: true
Size: 810 Bytes
Versions: 4
Compression:
Stored size: 810 Bytes
Contents
require 'spec_helper' require 'blogit/archive' require 'injectables/dummy_archiveable' describe Blogit::Archive::Year do describe :to_partial_path do let(:list) { Blogit::Archive::Year.new(2015, []) } it "returns the class name as a path to partial" do expect(list.to_partial_path).to eql("blogit/archive/year") end end describe :months do context "when archiveables contains valid archiveables" do let(:list) { Blogit::Archive::Year.new("2015", [ DummyArchiveable.new(2.months.ago), DummyArchiveable.new(2.months.ago), DummyArchiveable.new(2.weeks.ago) ]) } it "returns an empty array" do expect(list.months.size).to eql(2) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
blogit-1.1.2 | spec/lib/archive/year_spec.rb |
blogit-1.1.1 | spec/lib/archive/year_spec.rb |
blogit-1.1.0 | spec/lib/archive/year_spec.rb |
blogit-1.0.0 | spec/lib/archive/year_spec.rb |