I think it's better to pass the resource name as a parameter to the shared example group.

```rb
it_should_behave_like 'a resource', 'action_plans'

shared_examples_for 'a resource' do |name|
  # ...
end
```