spec/spec_helper.rb in smartdc-0.3.0 vs spec/spec_helper.rb in smartdc-0.4.0
- old
+ new
@@ -7,6 +7,12 @@
# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
RSpec.configure do |config|
-end
\ No newline at end of file
+end
+
+def client
+ @client ||= Smartdc.new(fixture('config', 'config'))
+ @client.format = 'mash'
+ @client
+end