summaryrefslogtreecommitdiff
path: root/spec/history_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/history_spec.rb')
-rw-r--r--spec/history_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/history_spec.rb b/spec/history_spec.rb
index bc3de4dd..5cf63f72 100644
--- a/spec/history_spec.rb
+++ b/spec/history_spec.rb
@@ -53,6 +53,11 @@ RSpec.describe Pry::History do
stub_hist has_default: false, xdg_home: '/my/path'
expect(described_class.default_file).to eq('/my/path/pry/pry_history')
end
+
+ it "returns config location relative to $XDG_DATA_HOME when ~/.pryrc exists" do
+ stub_hist has_default: true, xdg_home: '/my/path'
+ expect(described_class.default_file).to eq('/my/path/pry/pry_history')
+ end
end
end