spec/text_spec.rb in dev_commands-0.0.33 vs spec/text_spec.rb in dev_commands-0.0.34
- old
+ new
@@ -1,12 +1,12 @@
-require_relative '../lib/text.rb'
-
-describe Text do
- it "should be able to replace text in file" do
- FileUtils.mkdir('tmp') if(!File.exists?('tmp'))
- File.open('tmp/test.txt','w'){|f|
- f.write("test thing")
- }
- Text.replace_in_file('tmp/test.txt','thing','string')
- expect(IO.read('tmp/test.txt').include?('test string')).to eq(true)
- end
+require_relative '../lib/text.rb'
+
+describe Text do
+ it "should be able to replace text in file" do
+ FileUtils.mkdir('tmp') if(!File.exists?('tmp'))
+ File.open('tmp/test.txt','w'){|f|
+ f.write("test thing")
+ }
+ Text.replace_in_file('tmp/test.txt','thing','string')
+ expect(IO.read('tmp/test.txt').include?('test string')).to eq(true)
+ end
end
\ No newline at end of file