spec/integration_spec_helper.rb in rmega-0.0.3 vs spec/integration_spec_helper.rb in rmega-0.0.4
- old
+ new
@@ -8,8 +8,12 @@
def account_file_exists?
File.exists? account_file_path
end
-def valid_account
- @valid_account ||= YAML.load_file account_file_path
+def account
+ @account ||= YAML.load_file account_file_path
+end
+
+def storage
+ Rmega.login account['email'], account['password']
end