Sha256: b84237847c36390fa997614e23035e2402eb7dd61385f21c8c99785c9c3dc117

Contents?: true

Size: 661 Bytes

Versions: 4

Compression:

Stored size: 661 Bytes

Contents

require 'spec_helper'
require 'generator_spec/test_case'
require 'generators/refinery/pages/pages_generator'

module Refinery
  describe PagesGenerator do
    include GeneratorSpec::TestCase
    destination File.expand_path("../../../../tmp", __FILE__)

    before do
      prepare_destination
      run_generator
    end

    specify do
      destination_root.should have_structure {
        directory "config" do
          directory "initializers" do
            directory "refinery" do
              file "pages.rb" do
                contains "Refinery::Pages.configure"
              end
            end
          end
        end
      }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
refinerycms-pages-2.0.9 spec/lib/generators/refinery/pages/pages_generator_spec.rb
refinerycms-pages-2.0.8 spec/lib/generators/refinery/pages/pages_generator_spec.rb
refinerycms-pages-2.0.7 spec/lib/generators/refinery/pages/pages_generator_spec.rb
refinerycms-pages-2.0.6 spec/lib/generators/refinery/pages/pages_generator_spec.rb