Sha256: 3263d3be67781d93fab8b02d6b8ad38263590d1df902dc7202e8a40f3f05d38b

Contents?: true

Size: 903 Bytes

Versions: 4

Compression:

Stored size: 903 Bytes

Contents

require 'spec_helper'
require 'fileutils'
require 'genspec'

describe 'meta_reports:install_templates', disabled: false do
  it "should generate models" do
    subject.should generate("app/models/meta_reports")
    subject.should generate("app/models/meta_reports/color.rb")
  end

  it "should generate views" do
    subject.should generate("app/views/meta_reports/")
    subject.should generate("app/views/meta_reports/_default.html.erb")
    subject.should generate("app/views/meta_reports/_default_footer.pdf.prawn")
    subject.should generate("app/views/meta_reports/_default_table.html.erb")
    subject.should generate("app/views/meta_reports/_default_table.pdf.prawn")
    subject.should generate("app/views/meta_reports/default.html.erb")
    subject.should generate("app/views/meta_reports/default.pdf.prawn")
    subject.should generate("app/views/meta_reports/default.xlsx.axlsx")
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
meta_reports-0.1.3 spec/generators/install_templates_spec.rb
meta_reports-0.1.2 spec/generators/install_templates_spec.rb
meta_reports-0.1.1 spec/generators/install_templates_spec.rb
meta_reports-0.1.0 spec/generators/install_templates_spec.rb