Have you tried using Shared Examples?
describe SomeController do
shared_examples_for "common_get_new" do
# common stuff
end
context "regular users" do
describe "GET new" do
it_should_behave_like "common_get_new"
end
end
context "admin users" do
describe "GET new" do
it_should_behave_like "common_get_new"
end
end
end
Depending on what is in your common_get_new
method in your question, in order to simply get rid of your error, you could put the method in spec/support/utilities.rb, or do as @Chris Heald suggested and define the method at the top of the file.