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
I just run into the same problem. Using describe internally makes impossible to use described_class inside with_them. This is inconvenience.
classFoo;endRSpec.describeFoodowheredo{case1: {},}endwith_themdoit'overrides described value'dodescribed_class.new#=># NoMethodError:# undefined method `new' for :case1:Symbol# Did you mean? nextendendend
As a workaround, we need to use string keys to prevent RSpec from replacing the described_class value.
It's better to use context in this case since we're already describing a class or a method.
The text was updated successfully, but these errors were encountered: