Skip to content

Commit 55d33af

Browse files
committed
Fix remaining RuboCop warnings
1 parent 855402a commit 55d33af

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

spec/truffle/binding/of_caller_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def binding_of_caller
2222
end
2323

2424
it "gives read access to local variables at the call site" do
25-
x = 14
25+
x = 14 # rubocop:disable Lint/UselessAssignment
2626
binding_of_caller.local_variable_get(:x).should == 14
2727
end
2828

@@ -33,7 +33,7 @@ def binding_of_caller
3333
end
3434

3535
it "works through #send" do
36-
x = 14
36+
x = 14 # rubocop:disable Lint/UselessAssignment
3737
Truffle::Binding.send(:of_caller).local_variable_get(:x).should == 14
3838
end
3939

spec/truffle/boot/source_of_caller_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ def source_of_caller
2626
end
2727

2828
it "works through #send" do
29-
x = 14
3029
Truffle::Boot.send(:source_of_caller).should == __FILE__
3130
end
3231

spec/truffle/truffleruby/atomic_reference_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
reference = TruffleRuby::AtomicReference.new(:value)
7373
dumped = Marshal.dump(reference)
7474
loaded = Marshal.load(dumped)
75-
reference.get.should == :value
75+
loaded.get.should == :value
7676
end
7777

7878
end

0 commit comments

Comments
 (0)