updated rspec test after removal of require in resource