summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Gleeson <therobot.johnny5@gmail.com>2014-03-30 07:34:22 +0200
committerRyan Fitzgerald <rwfitzge@gmail.com>2014-04-27 14:11:12 -0700
commit011b335b8b20eb0681effc9838c6c9c68c301e5f (patch)
tree2e076919eb6a1503e014d8ff4d5cd3a8429596d4
parentc31c80c5972cb360d25a172ebfa9456b8eac1b3d (diff)
downloadpry-011b335b8b20eb0681effc9838c6c9c68c301e5f.tar.gz
fix test for `show-source -e`
-rw-r--r--CHANGELOG.md2
-rw-r--r--spec/commands/show_source_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index bea05efa..6ef8be42 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -37,7 +37,7 @@
* Add `change-inspector` command. (#1176)
- switch the current inspector, by name.
* Add `show-source -e` (#1185)
- - evaluate the command's input as a ruby expression and lookup the source of its return value.
+ - evaluate the command's argument as a ruby expression and show the class of its return value.
`show-source -e _pry_.config`
* Remove pry -i option. (#1155, #1182) Please use pry-rescue -i option.
diff --git a/spec/commands/show_source_spec.rb b/spec/commands/show_source_spec.rb
index c9bf1d0a..2b2659f9 100644
--- a/spec/commands/show_source_spec.rb
+++ b/spec/commands/show_source_spec.rb
@@ -137,7 +137,7 @@ describe "show-source" do
it "evaluates the argument as ruby and shows the source code for the returned value" do
ReplTester.start target: binding do
- input 'show-source -e @o.foobar'
+ input 'show-source -e FooBar.new'
output /class FooBar/
end
end