Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use correct option name for RBP exlude list

  • Loading branch information...
commit 4c208a8be23a16b8ab0c27b6aa9fd79f5c232bc2 1 parent b8d2dd3
Jared Pace jdpace authored
2  lib/koality/runner/rails_best_practices.rb
View
@@ -30,7 +30,7 @@ def translate_options(options)
{
'silent' => true,
'only' => regexp_list(options[:rails_bp_accept_patterns]),
- 'except' => regexp_list(options[:rails_bp_ignore_patterns])
+ 'exclude' => regexp_list(options[:rails_bp_ignore_patterns])
}
end
2  spec/koality/runner/rails_best_practices_spec.rb
View
@@ -22,7 +22,7 @@
rbp_opts = runner.rbp_options
rbp_opts['only'].should == [Regexp.new("app/controllers/.+\\.rb")]
- rbp_opts['except'].should == [/app\/helpers\/foo_helper\.rb/]
+ rbp_opts['exclude'].should == [/app\/helpers\/foo_helper\.rb/]
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.