README.md in robot-vim-0.1.1 vs README.md in robot-vim-0.9.0
- old
+ new
@@ -29,17 +29,20 @@
commands = <<-COMMANDS
RunSomeCoolCommand
SomeOtherCoolCommand
COMMANDS
- robot.run(:input_file => "some/file.txt", :commands => commands)
+ buffer_text = robot.run(:input_file => "some/file.txt", :commands => commands)
-See spec/integration\_spec.rb for an example of sorting a file and saving the output.
+### Making Assertions
+Use your preferred Ruby testing library to make assertions about the buffer text string returned by RobotVim::Runner#run
+See spec/integration\_spec.rb for an example of sorting a file and making an assertion.
+
## TODO
-- automatically save buffer to an output file after running the last command
-- automatically close Vim after running the last command
+- automatically save buffer to an output file after running the last command(done)
+- automatically close Vim after running the last command(done)
- take a string for input and write out a temporary file that Vim will run against
- figure out if there is a way to specify a .vimrc file without disabling the normal Vim initialization process
## Author
RobotVim is developed by Matt Margolis | mrmargolis | matt@mattmargolis.net