Sha256: 483ede743762fd3ba4ae98031fdeb30dcfdc75c1f586a319066ca16f16ea1226
Contents?: true
Size: 533 Bytes
Versions: 13
Compression:
Stored size: 533 Bytes
Contents
require 'spec_helper' module RevealCK module Misc describe RemoveExtension do describe 'remove_extension' do class Sample include RemoveExtension end let :sample do Sample.new end it 'removes a file extension' do result = sample.remove_extension('slides.md') expect(result).to eq 'slides' result = sample.remove_extension('google_talk.haml') expect(result).to eq 'google_talk' end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems