Sha256: 8b9dd590f13befd92c96484a731693bd34bef385f0b66b25c9e6b8621c708aab
Contents?: true
Size: 569 Bytes
Versions: 5
Compression:
Stored size: 569 Bytes
Contents
Given /^I have set up my credentials$/ do path = DNSimple::Client.config_path File.exists?(File.expand_path(path)).should be_truthy, "Please set up your #{path} file to continue" credentials = YAML.load(File.new(File.expand_path(path))) expect(credentials['username']).to_not be_nil, "You must specify a username in your #{path} file" expect(credentials['password']).to_not be_nil, "You must specify a password in your #{path} file" expect(credentials['base_uri']).to_not be_nil, "For cucumber to run, you must specify a base_uri in your #{path} file" end
Version data entries
5 entries across 5 versions & 1 rubygems