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

Version Path
reveal-ck-4.0.0 spec/lib/reveal-ck/misc/remove_extension_spec.rb
reveal-ck-3.9.2 spec/lib/reveal-ck/misc/remove_extension_spec.rb
reveal-ck-3.9.1 spec/lib/reveal-ck/misc/remove_extension_spec.rb
reveal-ck-3.9.0 spec/lib/reveal-ck/misc/remove_extension_spec.rb
reveal-ck-3.8.1 spec/lib/reveal-ck/misc/remove_extension_spec.rb
reveal-ck-3.8.0 spec/lib/reveal-ck/misc/remove_extension_spec.rb
reveal-ck-3.7.0 spec/lib/reveal-ck/misc/remove_extension_spec.rb
reveal-ck-3.6.0 spec/lib/reveal-ck/misc/remove_extension_spec.rb
reveal-ck-3.5.1 spec/lib/reveal-ck/misc/remove_extension_spec.rb
reveal-ck-3.5.0 spec/lib/reveal-ck/misc/remove_extension_spec.rb
reveal-ck-3.4.0 spec/lib/reveal-ck/misc/remove_extension_spec.rb
reveal-ck-3.3.1 spec/lib/reveal-ck/misc/remove_extension_spec.rb
reveal-ck-3.3.0 spec/lib/reveal-ck/misc/remove_extension_spec.rb