Skip to content

Commit

Permalink
Fixed another rubocop setting
Browse files Browse the repository at this point in the history
  • Loading branch information
pgruener committed Jun 22, 2021
1 parent df9d311 commit efc9d65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/react_on_rails/react_component/render_options_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ def the_attrs(react_component_name: "App", options: {})

it "is memoized" do
opts = described_class.new(the_attrs)
generated_value = opt.dom_id
generated_value = opts.dom_id

expect(opts.instance_variable_get(:@dom_id)).to eq generated_value
expect(opts.instance_variable_get(:@dom_id)).to eq opt.dom_id

opts.instance_variable_set(:@dom_id, '1234')
expect(opt.dom_id).to eq '1234'
opts.instance_variable_set(:@dom_id, "1234")
expect(opts.dom_id).to eq "1234"
end
end

Expand Down

0 comments on commit efc9d65

Please sign in to comment.