spec/spec_helper.rb in rubocop-rspec-1.0.rc2 vs spec/spec_helper.rb in rubocop-rspec-1.0.rc3
- old
+ new
@@ -13,14 +13,14 @@
#
# Remove once rubocop > 0.17.0 releases.
def parse_source(source, file = nil)
source = source.join($RS) if source.is_a?(Array)
if file.is_a? String
- Rubocop::SourceParser.parse(source, file)
+ RuboCop::SourceParser.parse(source, file)
elsif file
file.write(source)
file.rewind
- Rubocop::SourceParser.parse(source, file.path)
+ RuboCop::SourceParser.parse(source, file.path)
else
- Rubocop::SourceParser.parse(source)
+ RuboCop::SourceParser.parse(source)
end
end