You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 30, 2024. It is now read-only.
"its" could allow easily the use of methods with parameters like its("phone_numbers[0]").
# I think this piece of code could be changed from:
def its(attribute, &block)
..
let(:__its_subject) do
attribute_chain = attribute.to_s.split('.')
attribute_chain.inject(subject) do |inner_subject, attr|
inner_subject.send(attr)
end
end
end
..
# to this, to allow params and method chaining
..
let(:__its_subject) do
subject.instance_eval(attribute.to_s)
end
..