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
Post a Comment