Mange / roadie

Compare b8f42f8 ... +0 ... f1b5c50

Coverage Reach
spec/lib/roadie/document_spec.rb spec/lib/roadie/inliner_spec.rb spec/lib/roadie/asset_scanner_spec.rb spec/lib/roadie/net_http_provider_spec.rb spec/lib/roadie/url_generator_spec.rb spec/lib/roadie/provider_list_spec.rb spec/lib/roadie/url_rewriter_spec.rb spec/lib/roadie/filesystem_provider_spec.rb spec/lib/roadie/markup_improver_spec.rb spec/lib/roadie/cached_provider_spec.rb spec/lib/roadie/style_property_spec.rb spec/lib/roadie/selector_spec.rb spec/lib/roadie/stylesheet_spec.rb spec/lib/roadie/style_block_spec.rb spec/lib/roadie/path_rewriter_provider_spec.rb spec/lib/roadie/style_attribute_builder_spec.rb spec/lib/roadie/utils_spec.rb spec/lib/roadie/test_provider_spec.rb spec/lib/roadie/null_provider_spec.rb spec/lib/roadie/css_not_found_spec.rb spec/lib/roadie/deduplicator_spec.rb spec/lib/roadie/null_url_rewriter_spec.rb spec/integration_spec.rb spec/support/have_styling_matcher.rb spec/support/have_attribute_matcher.rb spec/support/have_node_matcher.rb spec/support/test_provider.rb spec/support/have_xpath_matcher.rb spec/support/have_selector_matcher.rb spec/shared_examples/url_rewriter.rb spec/shared_examples/asset_provider.rb lib/roadie/inliner.rb lib/roadie/document.rb lib/roadie/url_generator.rb lib/roadie/net_http_provider.rb lib/roadie/markup_improver.rb lib/roadie/errors.rb lib/roadie/rspec/asset_provider.rb lib/roadie/rspec/cache_store.rb lib/roadie/asset_scanner.rb lib/roadie/stylesheet.rb lib/roadie/provider_list.rb lib/roadie/selector.rb lib/roadie/style_property.rb lib/roadie/deduplicator.rb lib/roadie/url_rewriter.rb lib/roadie/filesystem_provider.rb lib/roadie/style_block.rb lib/roadie/cached_provider.rb lib/roadie/path_rewriter_provider.rb lib/roadie/utils.rb lib/roadie/style_attribute_builder.rb lib/roadie/null_provider.rb lib/roadie/null_url_rewriter.rb lib/roadie/asset_provider.rb lib/roadie/rspec.rb lib/roadie.rb

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

Showing 2 of 3 files from the diff.

@@ -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

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Coverage
lib 0.41% 99.03%
spec 0.46% 97.43%
Project Totals (57 files) 98.02%
Loading