ruby - Nested Context Blocks in RSpec -


does seem bad nesting context blocks inside of other context blocks?

for example:

describe "update_management"   context "with typical update"     context "when red flag has been raised"       ""       end     end     context "when yellow flag has been raised"       ""       end     end     etc...   end end 

i recommend check out better specs know more best practices while using contexts in rspec tests. can take @ rspec-style-guide know more best practices.


Comments

Popular posts from this blog

php - Using grpc in Laravel, "Class 'Grpc\ChannelCredentials' not found." -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

scikit learn - python sklearn KDTree with haversine distance -