Sha256: 14ce3386aae71a5d958a21de4577dd80230c958618fd6973df7e3d18d7ee5759
Contents?: true
Size: 752 Bytes
Versions: 3
Compression:
Stored size: 752 Bytes
Contents
require 'spec_helper' require "generator_spec" require "generators/champollion/views_generator" TMP_ROOT = File.expand_path("../../tmp", __FILE__) describe Champollion::Generators::ViewsGenerator, type: :generator do destination TMP_ROOT arguments %w(views) before(:all) do prepare_destination run_generator end specify do expect(destination_root).to have_structure { directory 'app/views/champollion/champollion/translations' do file '_form.html.erb' file 'index.html.erb' file 'edit.html.erb' file 'new.html.erb' end directory 'app/views/champollion/layouts/champollion' do file 'application.html.erb' file '_navigation.html.erb' end } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
champollion-0.1.7 | spec/generators/views_generator_spec.rb |
champollion-0.1.6 | spec/generators/views_generator_spec.rb |
champollion-0.1.5 | spec/generators/views_generator_spec.rb |