Fixing code redundancy in the nucleon_test rspec shared context.