spec/spec_helper.rb in device_cloud-0.2.3 vs spec/spec_helper.rb in device_cloud-0.2.4
- old
+ new
@@ -1,13 +1,28 @@
require 'device_cloud'
require 'ostruct'
+require 'webmock/rspec'
+require 'pry'
+require 'awesome_print'
+def idigi_username
+ 'foouser'
+end
+
+def idigi_password
+ 'barpass'
+end
+
+def authenticated_host
+ "https://#{DeviceCloud.username}:#{DeviceCloud.password}@#{DeviceCloud.host}"
+end
+
RSpec.configure do |config|
config.mock_with :rspec
config.before(:each) do
DeviceCloud.configure do |configuration|
- configuration.username = 'a username'
- configuration.password = 'a password'
+ configuration.username = idigi_username
+ configuration.password = idigi_password
end
end
-end
\ No newline at end of file
+end