require 'spec_helper' require 'vimrunner/testing' describe "Vim plugin xml-edit" do include Vimrunner::Testing let(:vim) { VIM } it "should define last_wrap_tag_used" do vim.command("echo exists('b:last_wrap_tag_used')").should eq "1" end it "should define last_wrap_atts_used" do vim.command("echo exists('b:last_wrap_atts_used')").should eq "1" end describe "#WrapTag" do before do write_file("test.xml", "foobar") end # it "should pass" do # vim.edit "test.xml" # vim.type "\\F" # vim.write # IO.read("test.xml").should eq "foobar" # end end end