spec/purecss/sassc_compilation_spec.rb
raw| 1 | RSpec.describe 'Sass C compilation' do |
| 2 | it 'compiles scss to css' do |
| 3 | path = '../../vendor/assets/stylesheets' |
| 4 | file = '_purecss' |
| 5 | sass_engine = SassC::Engine.new( |
| 6 | File.read(File.expand_path("#{path}/#{file}.scss", __dir__)), |
| 7 | cache_location: 'tmp/.sassc-cache', |
| 8 | load_paths: [path], |
| 9 | syntax: :scss |
| 10 | ) |
| 11 | expect { |
| 12 | File.open("tmp/#{file}.css", 'w') { |f| f.write(sass_engine.render) } |
| 13 | }.not_to raise_error |
| 14 | end |
| 15 | end |