Skip to content

Commit

Permalink
Fix StatsReporter spec on JRuby 9000
Browse files Browse the repository at this point in the history
This was failing with:

    Failure/Error: Unable to find org.jruby.util.StringSupport.
      rb_memsearch_qs_utf8_hash(StringSupport.java to read failed line

     Java::JavaLang::ArrayIndexOutOfBoundsException: 117

...which is an upstream error. Change the test to avoid this for now.
  • Loading branch information
sds committed Jul 28, 2016
1 parent 5437566 commit 173dbb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/scss_lint/reporter/stats_reporter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def new_lint(linter, filename, line)
end

it 'prints the name of each linter with lints' do
subject.report_lints.scan(linter_1.name).count.should eq 1
subject.report_lints.should include linter_1.name
end

it 'prints the number of lints per linter' do
Expand Down

0 comments on commit 173dbb7

Please sign in to comment.