spec/pager_spec.rb in command_kit-0.3.0 vs spec/pager_spec.rb in command_kit-0.4.0
- old
+ new
@@ -24,10 +24,10 @@
end
end
context "when the PAGER env variable is not set" do
context "but the PATH env variable is" do
- subject { command_class.new(env: {'PATH' => ENV['PATH']}) }
+ subject { command_class.new(env: {'PATH' => ENV.fetch('PATH')}) }
it "must search PATH for one of the pagers" do
expect(subject.instance_variable_get('@pager_command')).to eq("less -r")
end
end