mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Fix specs on jruby-19mode on travis
This is working around (another) brokenness in jruby 1.6.8s splat handling in ruby 1.9 mode; but I figure that now jruby 1.7 is out, we can not bother fixing it.
This commit is contained in:
parent
71bd613f13
commit
fae1417e5c
1 changed files with 3 additions and 3 deletions
|
@ -31,13 +31,13 @@ describe Pry do
|
|||
|
||||
describe "DEFAULT_PRINT" do
|
||||
it "should output the right thing" do
|
||||
mock_pry("{:a => 1}").should =~ /^=> \{:a=>1\}/
|
||||
mock_pry("[1]").should =~ /^=> \[1\]/
|
||||
end
|
||||
|
||||
it "should not include the =>" do
|
||||
accumulator = StringIO.new
|
||||
Pry.config.print.call(accumulator, :a => 1)
|
||||
accumulator.string.should == "{:a=>1}\n"
|
||||
Pry.config.print.call(accumulator, [1])
|
||||
accumulator.string.should == "\[1\]\n"
|
||||
end
|
||||
|
||||
it "should not be phased by un-inspectable things" do
|
||||
|
|
Loading…
Add table
Reference in a new issue