More conversion of current_beffer to buffer_current.

This commit is contained in:
Pistos 2010-09-02 10:32:46 -04:00
parent 11b871b417
commit e816544a30
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ module Diakonos
module Functions
def hello_world
@current_buffer.paste "Hello, world!"
@buffer_current.paste "Hello, world!"
end
end

View File

@ -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$)