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

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -