From e816544a3015bc09b105013eff07b4b3ecf4e36b Mon Sep 17 00:00:00 2001 From: Pistos Date: Thu, 2 Sep 2010 10:32:46 -0400 Subject: [PATCH] More conversion of current_beffer to buffer_current. --- extensions/dk-hello-world/hello-world.rb | 2 +- spec/searching.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/dk-hello-world/hello-world.rb b/extensions/dk-hello-world/hello-world.rb index d966ebc..49aea23 100644 --- a/extensions/dk-hello-world/hello-world.rb +++ b/extensions/dk-hello-world/hello-world.rb @@ -2,7 +2,7 @@ module Diakonos module Functions def hello_world - @current_buffer.paste "Hello, world!" + @buffer_current.paste "Hello, world!" end end diff --git a/spec/searching.rb b/spec/searching.rb index f4facc2..293bd0c 100644 --- a/spec/searching.rb +++ b/spec/searching.rb @@ -15,7 +15,7 @@ describe 'A Diakonos user' do it 'can grep the open buffers' do dir = File.dirname( File.expand_path( __FILE__ ) ) - @d.actually_grep( 'inspect', @d.current_buffer ) + @d.actually_grep( 'inspect', @d.buffer_current ) lines = File.readlines( @d.list_filename ) lines[ 0 ].should.match %r(^sample-file\.rb:13: def inspection {100,} \| #{dir}/test-files/sample-file\.rb:13\n$) lines[ 1 ].should.match %r(^sample-file\.rb:14: x\.inspect {100,} \| #{dir}/test-files/sample-file\.rb:14\n$)