Just requiring the file should work. Perhaps its not finding the file in question, you should use require require Rails.root.join('spec/support/shared_context.rb')
to be sure.
I normally require the entire spec/support directory in my spec_helper.rb
Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }