ENV['XIVELY_PRODUCT_ID'] = "airqualityegg"
ENV['XIVELY_API_KEY'] = "apikey"
ENV['XIVELY_API_URL'] = "http://api.xively.com"

require File.dirname(__FILE__) + '/../app'

require 'rspec'
require 'capybara/rspec'
require 'webmock/rspec'

Capybara.app = AirQualityEgg
WebMock.disable_net_connect!

# Requires all files in ./support/ and its subdirectories.
Dir[File.expand_path(File.join(File.dirname(__FILE__),'support','**','*.rb'))].each {|f| require f}

RSpec.configure do |config|
  config.include Capybara::DSL
end
