Closed YarikST closed 2 years ago
Hi, This is just normal Ruby precendence. Things outside of specs are evaluated before specs are run, its no different to how "some_value" here is evaulted before the name method is called.
class SomeClass
some_value = Time.current.middle_of_day
def name
Time.current.middle_of_day
end
end
SomeClass.new.name
Subject of the issue
Arguments of shared example evaluated before any
before
block. We should mention this in docsYour environment
Steps to reproduce