Commit 4fc7e5e
Fix credential store tests under ruby-core and JRuby
The config file test referenced Gem::CredentialStore before anything
required it, which only worked when another test loaded the constant
first, so it failed under ruby-core's test-all where the load order
differs. Require it directly. The macOS backend test expected Open3 to
raise Errno::ENOENT for a missing security binary, but JRuby reports a
failure status instead of raising, so assert only that no credential comes
back either way.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 676e4ec commit 4fc7e5e
2 files changed
Lines changed: 15 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
154 | 159 | | |
155 | | - | |
156 | | - | |
157 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
158 | 168 | | |
159 | 169 | | |
160 | 170 | | |
| |||
0 commit comments