Sha256: 0130fd111508e45a7893b212b7419d2b559c55763c5a745288be5f6b433af3ec
Contents?: true
Size: 717 Bytes
Versions: 9
Compression:
Stored size: 717 Bytes
Contents
require 'spec_helper' require "rails-footnotes/notes/stylesheets_note" describe Footnotes::Notes::StylesheetsNote do let(:note) {described_class.new(double('controller', :response => double('body', :body => '')))} subject {note} it {should be_valid} it "should return css link from html text after #scan_text call" do expect(subject.send(:scan_text, HTML_WITH_CSS)).to eql ['/stylesheets/compiled/print.css', '/stylesheets/compiled/print.css'] end end HTML_WITH_CSS = <<-EOF <link href="/stylesheets/compiled/print.css?1315913920" media="print" rel="stylesheet" type="text/css" />' '<link href="/stylesheets/compiled/print.css?1315913920" media="print" rel="stylesheet" type="text/css" />' EOF
Version data entries
9 entries across 9 versions & 2 rubygems