Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6012b623b1c09ad54d466947da04511a042ee45a
eb1b3cc8c677e4b226561dfa74138352a6624190
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2324
v2344
12 changes: 6 additions & 6 deletions test/stripe/telemetry_id_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ class TelemetryIdTest < Test::Unit::TestCase
end

context ".config_dir" do
if RUBY_PLATFORM !~ /mingw|mswin/
if RUBY_PLATFORM =~ /mingw|mswin/
should "return APPDATA/Stripe on Windows" do
refute_nil TelemetryId.config_dir
assert TelemetryId.config_dir.end_with?("Stripe")
end
else
should "return XDG_CONFIG_HOME/stripe when XDG_CONFIG_HOME is set" do
with_env("XDG_CONFIG_HOME" => "/tmp/xdg") do
assert_equal "/tmp/xdg/stripe", TelemetryId.config_dir
Expand All @@ -32,11 +37,6 @@ class TelemetryIdTest < Test::Unit::TestCase
assert_equal ::File.expand_path("~/.config/stripe"), TelemetryId.config_dir
end
end
else
should "return APPDATA/Stripe on Windows" do
refute_nil TelemetryId.config_dir
assert TelemetryId.config_dir.end_with?("Stripe")
end
end
end

Expand Down
Loading