Mange / roadie
Showing 2 of 3 files from the diff.
Newly tracked file
lib/roadie/stylesheet.rb changed.
Other files ignored by Codecov
Changelog.md has changed.

@@ -22,24 +22,6 @@
Loading
22 22
      ])
23 23
    end
24 24
25 -
    if VERSION < "4.0"
26 -
      it "can iterate all inlinable blocks" do
27 -
        inlinable = double(inlinable?: true, selector: "good", properties: "props")
28 -
        bad = double(inlinable?: false, selector: "bad", properties: "props")
29 -
30 -
        stylesheet = Stylesheet.new("example.css", "")
31 -
        allow(stylesheet).to receive_messages blocks: [bad, inlinable, bad]
32 -
33 -
        expect(stylesheet.each_inlinable_block.to_a).to eq([
34 -
          ["good", "props"],
35 -
        ])
36 -
      end
37 -
    else
38 -
      it "should no longer have #each_inlinable_block" do
39 -
        fail "Remove #each_inlinable_block"
40 -
      end
41 -
    end
42 -
43 25
    it "has a string representation of the contents" do
44 26
      stylesheet = Stylesheet.new("example.css", "body { color: green;}a{ color: red; font-size: small }")
45 27
      expect(stylesheet.to_s).to eq("body{color:green}\na{color:red;font-size:small}")

@@ -21,18 +21,6 @@
Loading
21 21
      @blocks = parse_blocks(css.sub(BOM, ""))
22 22
    end
23 23
24 -
    # @yield [selector, properties]
25 -
    # @yieldparam [Selector] selector
26 -
    # @yieldparam [Array<StyleProperty>] properties
27 -
    # @deprecated Iterate over the #{blocks} instead. Will be removed on version 4.0.
28 -
    def each_inlinable_block(&block)
29 -
      # #map and then #each in order to support chained enumerations, etc. if
30 -
      # no block is provided
31 -
      inlinable_blocks.map { |style_block|
32 -
        [style_block.selector, style_block.properties]
33 -
      }.each(&block)
34 -
    end
35 -
36 24
    def to_s
37 25
      blocks.join("\n")
38 26
    end
Files Coverage
lib 99.03%
spec 97.43%
Project Totals (57 files) 98.02%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading