spec/parser/csslint_spec.rb in lint_trap-0.0.15 vs spec/parser/csslint_spec.rb in lint_trap-0.0.16
- old
+ new
@@ -5,14 +5,14 @@
'bad.css: line 2, col 5, Error - Using width with border can sometimes'\
" make elements larger than you expect.\n\n"
end
let(:io){StringIO.new(parser_output)}
let(:container){LintTrap::Container::Fake.new}
- subject(:parser){described_class.new(io, container)}
+ subject(:parser){described_class.new}
describe '.parse' do
it 'parses violations from io' do
- expect{|b| @result = parser.parse(&b)}.to yield_successive_args(
+ expect{|b| @result = parser.parse(io, container, &b)}.to yield_successive_args(
file: 'bad.css',
line: '2',
column: '5',
length: nil,
rule: nil,