Skip to content

Commit

Permalink
Fix Rubocop issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ahangarha committed Jan 8, 2024
1 parent 026fae2 commit 1631569
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
# ActiveRecord::Migration.maintain_test_schema!

RSpec.configure do |config|
config.before(:each, js: true, type: :system) do
config.before(:each, :js, type: :system) do
driven_by :selenium_chrome
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require_relative "../rails_helper"

describe "Hello World", js: true do
describe "Hello World", :js do
it "the hello world example works" do
visit "/hello_world"
expect(heading).to have_text("Hello World")
Expand Down
2 changes: 1 addition & 1 deletion lib/react_on_rails/locales/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def default_locale

def convert
file_names.each do |name|
template = send("template_#{name}")
template = send(:"template_#{name}")
path = file(name)
generate_file(template, path)
end
Expand Down
4 changes: 2 additions & 2 deletions spec/dummy/spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@
Rack::Handler::Puma.run(app, Port: port)
end

config.before(:each, js: true, type: :system) do
config.before(:each, :js, type: :system) do
driven_by driver
end

config.before(:each, rack_test: true, type: :system) do
config.before(:each, :rack_test, type: :system) do
driven_by :rack_test
end

Expand Down
2 changes: 1 addition & 1 deletion spec/react_on_rails/react_component/render_options_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def the_attrs(react_component_name: "App", options: {})

context "without #{option} option" do
it "returns #{option} from config" do
ReactOnRails.configuration.public_send("#{option}=", true)
ReactOnRails.configuration.public_send(:"#{option}=", true)
attrs = the_attrs

opts = described_class.new(**attrs)
Expand Down

0 comments on commit 1631569

Please sign in to comment.