aboutsummaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index cfe5a51..c09f394 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -40,6 +40,11 @@ def load_file_content
IO.read(@file).strip
end
+def load_file_content_unstripped
+ vim.write
+ IO.read(@file)
+end
+
def type(string)
string.scan(/<.*?>|./).each do |key|
if key =~ /<.*>/
@@ -60,6 +65,11 @@ def final(string)
expect(load_file_content).to eq expected
end
+def final_with_indents(string)
+ expected = string
+ expect(load_file_content_unstripped).to eq expected
+end
+
def use_extension(ext)
@ext = ext
end