Sha256: 8818d8047dcfbcf5ad67e3c61034b5030f8332dfe0f6d2dad74af8e3b8cd709c
Contents?: true
Size: 474 Bytes
Versions: 1
Compression:
Stored size: 474 Bytes
Contents
require 'spec_helper' describe "Automating Vim with RobotVim" do it "can sort a file using vim" do input_path = File.join(File.dirname(__FILE__), "fixtures", "unsorted_file.txt") unsorted_text = File.read(input_path) commands = <<-COMMANDS :%!sort COMMANDS runner = RobotVim::Runner.new result = runner.run(:commands => commands, :input_file => input_path) result.should eql(unsorted_text.split("\n").sort.join("\n") + "\n") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
robot-vim-0.9.0 | spec/integration_spec.rb |