laughing-hipster/Tools/vim/bundle/xmledit/tests/spec/xmledit_spec.rb

27 lines
650 B
Ruby

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 "<testtag testattr>foobar</testtag>"
# end
end
end