Skip to content

Commit 3139947

Browse files
committed
Fix some new RuboCop warnings
1 parent 3b0456f commit 3139947

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

demo/config/environments/development.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
# Enable/disable caching. By default caching is disabled.
1818
# Run rails dev:cache to toggle caching.
19-
if Rails.root.join("tmp/caching-dev.txt").exist?
19+
if Rails.root.join("tmp", "caching-dev.txt").exist?
2020
config.action_controller.perform_caching = true
2121

2222
config.cache_store = :memory_store

test/bootstrap_form_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ class BootstrapFormTest < ActionView::TestCase
352352
end
353353

354354
test "allows to set custom default form attributes via configuration" do
355-
BootstrapForm.config.stubs(:default_form_attributes).returns({ foo: "bar" })
355+
BootstrapForm.config.stubs(:default_form_attributes).returns(foo: "bar")
356356
expected = <<-HTML.strip_heredoc
357357
<form accept-charset="UTF-8" action="/users" class="new_user" foo="bar" id="new_user" method="post">
358358
#{'<input name="utf8" type="hidden" value="&#x2713;"/>' unless ::Rails::VERSION::STRING >= '6'}

0 commit comments

Comments
 (0)