require 'rubygems'
require 'bundler/setup'
require 'rspec'

require 'json'
require 'rest-client'

require 'cradlepointr'

RSpec.configure do |config|
  config.color_enabled = true
end

USERNAME ||= ENV['ecm_username']
PASSWORD ||= ENV['evm_password']

raise 'REQUIRED ENV variables: [ecm_username and ecm_password] in order to run the specs.' unless USERNAME and PASSWORD
require 'rubygems'
require 'bundler/setup'
require 'rspec'

require 'json'
require 'rest-client'

require 'cradlepointr'

RSpec.configure do |config|
  config.color_enabled = true
end

USERNAME ||= ENV['ecm_username']
PASSWORD ||= ENV['evm_password']

raise 'REQUIRED ENV variables: [ecm_username and ecm_password] in order to run the specs.' unless USERNAME and PASSWORD

def authenticate_with_valid_credentials
  Cradlepointr.authenticate(USERNAME, PASSWORD)
end
Raise rspec error without ecm credentials.
Raise rspec error without ecm credentials.
