# require 'spec_helper' require File.dirname(__FILE__) + '/../spec_helper' describe "Stylesheet Tags" do dataset :stylesheets let(:page){ pages(:home) } describe "" do let(:site_css){pages(:site_css)} subject { page } it { should render(%{}).with_error("`stylesheet' tag must contain a `slug' attribute.") } it { should render(%{}).with_error("stylesheet bogus not found") } it { should render(%{}).as("p { color: blue; }") } it { should render(%{}).as("/css/site.css?#{site_css.updated_at.to_i}") } it { should render(%{}).as(%{}) } it { should render(%{}).as(%{}) } it { should render(%{}).as(%{}) } it { should render(%{}).as(%{}) } it { should render(%{}).as(%{}) } it { should render(%{}).as(%{}) } it { should render(%{}).as(%{}) } it "should apply text filters when outputing content" do css_result_from_sass = Sass::Engine.new(pages(:sassy_sass).part('body').content, Compass.sass_engine_options || {}).render site_css.should render(%{}).as(css_result_from_sass) end end end