Skip to content

Commit 59cef74

Browse files
committed
Fix remaining Ruby warnings.
- spec/rspec/rails/minitest_lifecycle_adapter_spec.rb: > warning: assigned but unused variable - example - spec/support/shared_examples.rb > warning: assigned but unused variable - spec_file Ruby 1.9.3 seems to erroneously report the following warning: - lib/rspec/rails/matchers/have_http_status.rb: > warning: assigned but unused variable - _ignored This is logged on ruby-trunk: https://bugs.ruby-lang.org/issues/9943
1 parent 6385491 commit 59cef74

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/rspec/rails/minitest_lifecycle_adapter_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
define_method(:after_teardown) { invocations << :after_teardown }
1313
end
1414

15-
example = example_group.example("foo") { invocations << :example }
15+
example_group.example("foo") { invocations << :example }
1616
example_group.run(NullObject.new)
1717

1818
expect(invocations).to eq([

spec/support/shared_examples.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def define_group_in(path, group_definition)
1212
Dir.mktmpdir("rspec-rails-app-root") do |dir|
1313
Dir.chdir(dir) do
1414
path.mkpath
15-
spec_file = File.open(file, "w") do |f|
15+
File.open(file, "w") do |f|
1616
f.write("$_new_group = #{group_definition}")
1717
end
1818

0 commit comments

Comments
 (0)