Sha256: e30caf5260de3b45237b992147c5438265fa3aa20a6a00a68f8786be47489d94
Contents?: true
Size: 870 Bytes
Versions: 3
Compression:
Stored size: 870 Bytes
Contents
module PstnHelpers include Torasup::Test::Helpers RSpec.configure do |config| config.before do clear_pstn clear_registered_operators end end private def yaml_file(filename) File.join(File.dirname(__FILE__), "../../spec/support/#{filename}") end def clear_pstn Torasup.configure do |config| config.custom_pstn_data_file = nil end end def clear_registered_operators Torasup.configure do |config| config.registered_operators = {} end end def configure_registered_operators(country_id, *operators) Torasup.configure do |config| config.register_operators(country_id, *operators) end end def configure_with_custom_data Torasup.configure do |config| config.custom_pstn_data_file = File.join(File.dirname(__FILE__), "../support", "/custom_pstn.yaml") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
torasup-0.0.9 | spec/support/pstn_helpers.rb |
torasup-0.0.8 | spec/support/pstn_helpers.rb |
torasup-0.0.7 | spec/support/pstn_helpers.rb |