Sha256: ec68cc195d9e2f683cb91158b5722fecdea3f88ea641f71cde6c279dc446b75b

Contents?: true

Size: 633 Bytes

Versions: 2

Compression:

Stored size: 633 Bytes

Contents

require 'spec_helper'

describe Staticpress do
  basic_blog

  describe '.blog_path' do
    it 'correctly guesses where the blog is' do
      expect(Staticpress.blog_path).to eq(Pathname('tmp/test_blog').expand_path)
    end
  end

  describe '.blog_path=' do
    before do
      Staticpress.blog_path = 'some/other/directory'
    end

    it 'can set the blog path explicitly' do
      expect(Staticpress.blog_path).to eq(Pathname('some/other/directory').expand_path)
    end
  end

  describe '.root' do
    it 'knows where it is installed to' do
      expect(Staticpress.root).to eq(Pathname('lib').expand_path)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
staticpress-0.7.1 spec/unit/staticpress_spec.rb
staticpress-0.7.0 spec/unit/staticpress_spec.rb