We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We have some specs we we define dynamic classes inside specs like this
describe Decidim::Exporters::CSV do let(:serializer) do Class.new do def initialize(resource) @resource = resource end def serialize { id: @resource.id, serialized_name: @resource.name, other_ids: @resource.ids } end end end # my specs ... end
RSpec/InstanceVariable should not fire in this case.
RSpec/InstanceVariable
The text was updated successfully, but these errors were encountered:
Fix InstanceVariable offense when dynamic class uses instance variabl…
215af20
…es. Fixes #506
Fix false positive when instance variable is defined inside dynamic c…
65aced1
…lass. Fixes #506
Successfully merging a pull request may close this issue.
We have some specs we we define dynamic classes inside specs like this
RSpec/InstanceVariable
should not fire in this case.The text was updated successfully, but these errors were encountered: