Sha256: 8bd7c17dbcf9c2b37b7a59028b641d2f3eeac7a4cb0027c8a35d5c83a5a2a84b
Contents?: true
Size: 537 Bytes
Versions: 2
Compression:
Stored size: 537 Bytes
Contents
require "w3c_rspec_validators" describe "css_files" do describe "self.compiled" do before(:each) do Object.should_receive(:system).with "rake -q assets:precompile" Rails.stub(:root).and_return "railsroot" FileUtils.should_receive(:rm_rf).with "railsroot/public/assets/" end it "should read css files from a directory" do directory = File.dirname(__FILE__) W3cRspecValidators::CssFiles.compiled(["#{directory}/fixtures/*.css"]) .should == "#home {}\nbody {\n}\n" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
w3c_rspec_validators-0.2.1 | spec/css_files_spec.rb |
w3c_rspec_validators-0.2.0 | spec/css_files_spec.rb |