twitter-status-bot/.gems/gems/simple_oauth-0.2.0/spec/support/rsa.rb

12 lines
244 B
Ruby
Raw Normal View History

2014-09-03 08:49:59 +00:00
module RSAHelpers
PRIVATE_KEY_PATH = File.expand_path('../fixtures/rsa-private-key', __FILE__)
def rsa_private_key
@rsa_private_key ||= File.read(PRIVATE_KEY_PATH)
end
end
RSpec.configure do |config|
config.include RSAHelpers
end