fog--fog/tests/core
Hunter Haugen d25b39405f [core] `@credential` should always be a symbol
Similar to #504, say your ~/.fog had multiple stanzas:

```yaml
:default:
  :aws_access_key_id: aaa
test:
  :aws_access_key_id: bbb
:prod:
  :aws_access_key_id: ccc
```

By default, fog will look for either the credential *symbol* `:default` or for the *string* stored in `FOG_CREDENTIAL` (in `lib/fog/core/credentials.rb` method `self.credential`). When the fog credentials file given above is read in, it’s passed through `self.symbolize_credentials` which makes *symbols* out of all the keys (so `prod`, `test`, and `default` will all be symbols) and saves the list to credentials then looks for `credentials[credential]` which is indexing a string in a hash of symbols.

Any value that `@credential` is set to should be a symbol, because the hash keys will only be symbols.
2011-11-16 09:51:43 -08:00
..
attribute_tests.rb [core] treat boolean values as a boolean 2011-10-03 19:36:38 +02:00
credential_tests.rb [core] `@credential` should always be a symbol 2011-11-16 09:51:43 -08:00
mocking_tests.rb Adding a method to unmock Fog. Addresses issue #594 2011-11-09 11:30:33 -08:00
parser_tests.rb
timeout_tests.rb