diff options
author | Kyrylo Silin <silin@kyrylo.org> | 2019-04-29 23:52:05 +0300 |
---|---|---|
committer | Kyrylo Silin <silin@kyrylo.org> | 2019-04-29 23:52:08 +0300 |
commit | aab6431559631b3d48cb0106feaf04e0c242b507 (patch) | |
tree | d6982760662e317f9ba28fb2e66e64bae5145e6d | |
parent | 09ebd358e19ca169b5c5e5debdbc021dfaccf524 (diff) | |
download | pry-aab6431559631b3d48cb0106feaf04e0c242b507.tar.gz |
spec/command: fix spec on 1.9.3
The new command state implementation returns an OpenStruct. On Ruby 1.9
OpenStruct doesn't support `#[]`.
-rw-r--r-- | spec/command_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/command_spec.rb b/spec/command_spec.rb index 5991304f..b01cff07 100644 --- a/spec/command_spec.rb +++ b/spec/command_spec.rb @@ -485,8 +485,8 @@ RSpec.describe Pry::Command do end it "remembers the state" do - subject.state[:foo] = :bar - expect(subject.state[:foo]).to eq(:bar) + subject.state.foo = :bar + expect(subject.state.foo).to eq(:bar) end end |