Sha256: 089d25485c198fb6b775e9575f88ab52b3cfb90e0332d7cba82a1ca20c4f140b

Contents?: true

Size: 410 Bytes

Versions: 6

Compression:

Stored size: 410 Bytes

Contents

describe UnderOs::Parser do

  it "should parse .css files" do
    UnderOs::Parser.parse('test.css').size.should.not == 0
  end

  it "should parse .html files" do
    UnderOs::Parser.parse('test.html').size.should.not == 0
  end

  it "should not fail on non existing files" do
    UnderOs::Parser.parse('non-existing.css').should  == {}
    UnderOs::Parser.parse('non-existing.html').should == []
  end

end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
under-os-ui-1.4.0 spec/under_os/parser_spec.rb
under-os-1.3.0 spec/lib/under_os/parser_spec.rb
under-os-1.2.1 spec/lib/under_os/parser_spec.rb
under-os-1.2.0 spec/lib/under_os/parser_spec.rb
under-os-1.1.0 spec/lib/under_os/parser_spec.rb
under-os-1.0.0 spec/lib/under_os/parser_spec.rb