Skip to content

Instantly share code, notes, and snippets.

@jgouly
Created April 7, 2011 15:32
Show Gist options
  • Save jgouly/908011 to your computer and use it in GitHub Desktop.
Save jgouly/908011 to your computer and use it in GitHub Desktop.
diff --git a/spec/buffer.rb b/spec/buffer.rb
index 30b94b4..a45fee6 100644
--- a/spec/buffer.rb
+++ b/spec/buffer.rb
@@ -240,15 +240,15 @@ end
describe 'A Diakonos user' do
before do
- @b = Diakonos::Buffer.new( 'filepath' => SAMPLE_FILE )
+ @b = Diakonos::Buffer.new()
end
it 'can close XML tags' do
@b.set_type 'html'
@b.cursor_to 0,0
- @b.cursor_to_eol
@b.carriage_return
+ @b.cursor_to_eol
@b.paste "<div>"
@b.close_code
@b[ @b.last_row ].should.equal '<div></div>'
@@ -292,4 +292,4 @@ describe 'A Diakonos user' do
cursor_should_be_at @b.last_row, 49
end
-end
\ No newline at end of file
+end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment