Sha256: 3770935ac1a1465f710af974548c8f85a068bc95deb713b391f251c279222d35
Contents?: true
Size: 1.14 KB
Versions: 3
Compression:
Stored size: 1.14 KB
Contents
require File.dirname(__FILE__) + '/spec_helper.rb' describe InstallTheme do include SetupThemeHelpers extend FileDiffMatcher context "bloganje theme to haml" do before(:all) { setup_bloganje :rails => {:haml => true} } it { @theme.should be_haml } it { @theme.should be_valid } it_should_have_matching_file "app/views/layouts/application.html.haml" it_should_have_matching_file "app/views/layouts/_header.html.haml" it_should_have_matching_file "app/views/layouts/_sidebar.html.haml" it_should_have_matching_file "app/helpers/template_helper.rb" it_should_have_matching_file "public/stylesheets/sass/style.sass" it { File.should be_exist(File.join(@target_application, "app/views/original_template/index.html.haml")) } context "sample template /original_template/index.html.haml" do subject do File.read(File.join(@target_application, 'app/views/original_template/index.html.haml')) end it { should include("- content_for :head do\n %script") } it { should include("- content_for :header do\n My eCommerce Admin area") } it { should include('#rightnow') } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
install_theme-0.8.2 | spec/install_theme_haml_spec.rb |
install_theme-0.8.1 | spec/install_theme_haml_spec.rb |
install_theme-0.8.0 | spec/install_theme_haml_spec.rb |