Sha256: 6f6c58eb993826806cf4ac46ab6735feb1de38f65ef04498d84d5f776b07662b
Contents?: true
Size: 911 Bytes
Versions: 2
Compression:
Stored size: 911 Bytes
Contents
require 'support/test_app' module ApiHelper def app_id TestApp.instance.app_id end def key_id TestApp.instance.key_id end def key_secret api_key.split(':')[1] end def api_key TestApp.instance.api_key end def restricted_api_key TestApp.instance.restricted_api_key end def environment TestApp.instance.environment end def reload_test_app WebMock.disable! TestApp.reload end def encode64(text) Base64.encode64(text).gsub("\n", '') end end RSpec.configure do |config| config.include ApiHelper config.before(:suite) do WebMock.disable! end config.after(:suite) do WebMock.disable! TestApp.instance.delete end end module ApiPreloader def self.included(mod) WebMock.disable! TestApp.instance.api_key end RSpec.configure do |config| config.include self, :file_path => %r(spec/acceptance) end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
ably-rest-0.7.3 | lib/submodules/ably-ruby/spec/support/api_helper.rb |
ably-0.7.2 | spec/support/api_helper.rb |