Sha256: 77cfcb050091e2b3ab2cb6e63656de75e21b03f70b75ce9a8258f83d417f8bad

Contents?: true

Size: 390 Bytes

Versions: 9

Compression:

Stored size: 390 Bytes

Contents

require 'spec_helper'

describe Crowdblog::ViewsGenerator do
  let(:destination) { 'tmp' }

  before do
    FileUtils.rm_rf 'tmp'
  end

  it "copies all the views" do
    Crowdblog::ViewsGenerator.start([], :destination_root => destination)
    Dir['app/views/**/*'].each do |f|
      File.read(f).should eq File.read(File.join(destination, f)) unless File.directory?(f)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
crowdblog-0.6.2 spec/generators/crowdblog/views_generator_spec.rb
crowdblog-0.6.0 spec/generators/crowdblog/views_generator_spec.rb
crowdblog-0.5.0 spec/generators/crowdblog/views_generator_spec.rb
crowdblog-0.3.3 spec/generators/crowdblog/views_generator_spec.rb
crowdblog-0.4.0 spec/generators/crowdblog/views_generator_spec.rb
crowdblog-0.3.2 spec/generators/crowdblog/views_generator_spec.rb
crowdblog-0.3.1 spec/generators/crowdblog/views_generator_spec.rb
crowdblog-0.3.0 spec/generators/crowdblog/views_generator_spec.rb
crowdblog-0.2.0 spec/generators/crowdblog/views_generator_spec.rb