Sha256: b1b71ca5747e24bd7abd74d2dc525862565449b045172509e5c48c2b81ab537b
Contents?: true
Size: 523 Bytes
Versions: 1
Compression:
Stored size: 523 Bytes
Contents
require 'spec_helper' describe SCSSLint::Engine do let(:engine) { described_class.new(scss) } context 'when a @media directive is present' do let(:scss) { <<-SCSS } @media only screen { } SCSS it 'has a parse tree' do engine.tree.should_not be_nil end end context 'when the file being linted has an invalid byte sequence' do let(:scss) { "\xC0\u0001" } it 'raises a SyntaxError' do expect { engine }.to raise_error(SCSSLint::FileEncodingError) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
scss-lint-0.34.0 | spec/scss_lint/engine_spec.rb |