add inherited_resources
add rspec tests