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

matlab - error with cyclic autocorrelation function -

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

c# - What is a good .Net RefEdit control to use with ExcelDna? -