Sha256: dc8542e5a52c80d73c75cf570df7902df07509ad9569354f0bfa81a171432c63

Contents?: true

Size: 372 Bytes

Versions: 4

Compression:

Stored size: 372 Bytes

Contents

require 'spec_helper'
require 'blogit/archive'
require 'injectables/dummy_archiveable'

describe Blogit::Archive::Month do
  
  describe :to_partial_path do
    
    let(:list) { Blogit::Archive::Month.new("June", []) }
    
    it "returns the class name as a path to partial" do
      expect(list.to_partial_path).to eql("blogit/archive/month")
    end
    
  end
  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
blogit-1.1.2 spec/lib/archive/month_spec.rb
blogit-1.1.1 spec/lib/archive/month_spec.rb
blogit-1.1.0 spec/lib/archive/month_spec.rb
blogit-1.0.0 spec/lib/archive/month_spec.rb