Skip to content

Commit

Permalink
Merge b31df0c into dc12124
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-salty committed Jun 30, 2015
2 parents dc12124 + b31df0c commit dfa1c10
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
5 changes: 3 additions & 2 deletions spec/googleauth/get_application_default_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
Dir.mktmpdir do |dir|
key_path = File.join(dir, 'does-not-exist')
ENV[@var_name] = key_path
expect { Google::Auth.get_application_default(@scope) }.to raise_error
expect { Google::Auth.get_application_default(@scope) }
.to raise_error RuntimeError
end
end

Expand All @@ -79,7 +80,7 @@
blk = proc do
Google::Auth.get_application_default(@scope, connection: c)
end
expect(&blk).to raise_error
expect(&blk).to raise_error RuntimeError
end
stubs.verify_stubbed_calls
end
Expand Down
4 changes: 2 additions & 2 deletions spec/googleauth/service_account_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def cred_json_text
Dir.mktmpdir do |dir|
key_path = File.join(dir, 'does-not-exist')
ENV[@var_name] = key_path
expect { @clz.from_env(@scope) }.to raise_error
expect { @clz.from_env(@scope) }.to raise_error RuntimeError
end
end

Expand Down Expand Up @@ -285,7 +285,7 @@ def cred_json_text
Dir.mktmpdir do |dir|
key_path = File.join(dir, 'does-not-exist')
ENV[@var_name] = key_path
expect { clz.from_env }.to raise_error
expect { clz.from_env }.to raise_error RuntimeError
end
end

Expand Down
7 changes: 4 additions & 3 deletions spec/googleauth/user_refresh_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def cred_json_text(missing = nil)
Dir.mktmpdir do |dir|
key_path = File.join(dir, 'does-not-exist')
ENV[@var_name] = key_path
expect { @clz.from_env(@scope) }.to raise_error
expect { @clz.from_env(@scope) }.to raise_error RuntimeError
end
end

Expand All @@ -120,7 +120,7 @@ def cred_json_text(missing = nil)
FileUtils.mkdir_p(File.dirname(key_path))
File.write(key_path, cred_json_text(missing))
ENV[@var_name] = key_path
expect { @clz.from_env(@scope) }.to raise_error
expect { @clz.from_env(@scope) }.to raise_error RuntimeError
end
end
end
Expand Down Expand Up @@ -170,7 +170,8 @@ def cred_json_text(missing = nil)
FileUtils.mkdir_p(File.dirname(key_path))
File.write(key_path, cred_json_text(missing))
ENV['HOME'] = dir
expect { @clz.from_well_known_path(@scope) }.to raise_error
expect { @clz.from_well_known_path(@scope) }
.to raise_error RuntimeError
end
end
end
Expand Down

0 comments on commit dfa1c10

Please sign in to comment.