Skip to content

Commit

Permalink
Remove trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Aug 3, 2018
1 parent 8316026 commit 9be7c7e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/module/const_get_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
it 'does autoload a non-toplevel module' do
Object.const_get('CSAutoloadD::InnerModule').name.should == 'CSAutoloadD::InnerModule'
end

describe "with statically assigned constants" do
it "searches the immediate class or module first" do
ConstantSpecs::ClassA.const_get(:CS_CONST10).should == :const10_10
Expand Down
6 changes: 3 additions & 3 deletions language/fixtures/array.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ def initialize()
end

attr_reader :call_count

def array_result(a_number)
[result(a_number), result(a_number)]
end

def result(a_number)
@call_count += 1
if a_number
Expand All @@ -28,5 +28,5 @@ def result(a_number)
:thing
end
end
end
end
end
2 changes: 1 addition & 1 deletion security/cve_2010_1330_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# same - we want to check that Ruby implementations raise an error on
# #gsub on a string in the UTF-8 encoding but with invalid an UTF-8 byte
# sequence.

str = "\xF6<script>"
str.force_encoding Encoding::ASCII_8BIT
str.gsub(/</, "&lt;").should == "\xF6&lt;script>".b
Expand Down

0 comments on commit 9be7c7e

Please sign in to comment.