Sha256: 39051d940d7f2a786c54b184fd82b990c68e2f3cb302825bb3678f98ee525386

Contents?: true

Size: 775 Bytes

Versions: 2

Compression:

Stored size: 775 Bytes

Contents

require 'spec_helper'

describe 'Editing blog' do
  create_sample_blog

  it 'Creating a new blog post' do
    create_post
    edit_post
  end

  it 'Creating a static page' do
    create_page
    edit_page
  end

  context 'without any custom plugins' do
    before :each do
      run_simple 'rm -fR plugins'
    end

    it 'Copying a built-in plugin' do
      fork_plugin
      confirm_plugin_editable 'blockquote'
    end

    it 'Copying and renaming a built-in plugin' do
      fork_plugin 'pullquote'
      confirm_plugin_editable 'pullquote'
    end
  end

  context 'without a custom theme' do
    before :each do
      run_simple 'rm -fR themes'
    end

    it 'Copying the default theme' do
      fork_theme
      confirm_theme_is_local 'basic'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
staticpress-0.7.1 spec/integration/editing_blog_spec.rb
staticpress-0.7.0 spec/integration/editing_blog_spec.rb