spec/space2dot_spec.rb in space2dot-0.1.2 vs spec/space2dot_spec.rb in space2dot-0.1.3
- old
+ new
@@ -1,8 +1,15 @@
+# coding: utf-8
+
require 'spec_helper'
describe Space2dot do
it 'returns dot included in string' do
expect(Space2dot.convert(['fuga hoge foo'])).to include('.') # String case
expect(Space2dot.convert(%w(fuga hoge foo))).to include('.') # Array case
+ end
+
+ it 'returns dot included in string in beginning of line' do
+ expect(Space2dot.convert(['fuga hoge foo'])[0]).to eq('.')
+ expect(Space2dot.convert(%w(fuga hoge foo))[0]).to eq('.')
end
end