spec/space2dot_spec.rb in space2dot-0.0.3 vs spec/space2dot_spec.rb in space2dot-0.1.1

- old
+ new

@@ -1,12 +1,8 @@ -require File.expand_path(File.dirname(__FILE__) + '/spec_helper') +require 'spec_helper' describe Space2dot do - it 'Successful execution' do - expect(Space2dot.convert(['fuga hoge foo'])).to eq('.fuga.hoge.foo') # String case - expect(Space2dot.convert(%w(fuga hoge foo))).to eq('.fuga.hoge.foo') # Array case - end - - it 'Successful copied' do - expect(Space2dot.copy_command('.fuga.hoge.foo')).to eq("echo .fuga.hoge.foo | ruby -pe 'chomp' | pbcopy") + 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 end