Sha256: 4c9f63af7e71b7bfd92d9d360f6c2f8fc4688b07048f25f074a57dc1715d6ad8
Contents?: true
Size: 570 Bytes
Versions: 3
Compression:
Stored size: 570 Bytes
Contents
require 'spec_helper' module Writefully describe Indices do let(:full_path) { ['/Users/zacksiri/Repositories/writefully/spec/dummy/content/codemy-net/posts/1-hash-selector-pattern/README.md'] } let(:index) { [{site: 'codemy-net', resource: 'posts', slug: '1-hash-selector-pattern' }] } subject { Indices } before do Writefully.stub(:options).and_return({content: '/Users/zacksiri/Repositories/writefully/spec/dummy/content/' }) end it "#build_from" do expect(Indices.build_from(full_path)).to eq index end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
writefully-0.8.2 | spec/lib/writefully/indices_spec.rb |
writefully-0.8.1 | spec/lib/writefully/indices_spec.rb |
writefully-0.8.0 | spec/lib/writefully/indices_spec.rb |