spec/lib/new/interpolate_spec.rb in new-0.0.14 vs spec/lib/new/interpolate_spec.rb in new-0.0.15
- old
+ new
@@ -32,6 +32,12 @@
end
it 'should respond to options as methods' do
expect(@obj.foo.bar).to eq 'baz'
end
+
+ describe '#friendly_filename' do
+ it 'should convert a string to a unix compatible filename' do
+ expect(@obj.to_filename('Foo Bar')).to eq 'foo_bar'
+ end
+ end
end