Sha256: 2ae88c28dc3aca63f0b50e7c349003d4408c029b66e1e6def7c9ed30a1068ae4

Contents?: true

Size: 305 Bytes

Versions: 14

Compression:

Stored size: 305 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), "../..", "example_helper.rb"))
require 'relevance/core_extensions/file'

describe "Relevance::CoreExtensions::File#extension" do
  it "should return the extension without the leading dot" do
    File.extension("foo.bar").should == "bar"
  end
end

Version data entries

14 entries across 14 versions & 5 rubygems

Version Path
relevance-tarantula-0.1.6 examples/relevance/core_extensions/file_example.rb
relevance-tarantula-0.1.7 examples/relevance/core_extensions/file_example.rb
relevance-tarantula-0.1.8 examples/relevance/core_extensions/file_example.rb
relevance-tarantula-0.2.0 examples/relevance/core_extensions/file_example.rb
relevance-tarantula-0.2.1 examples/relevance/core_extensions/file_example.rb
relevance-tarantula-0.3.2 examples/relevance/core_extensions/file_example.rb
relevance-tarantula-0.3.3 examples/relevance/core_extensions/file_example.rb
romanbsd-tarantula-0.1.8 examples/relevance/core_extensions/file_example.rb
romanbsd-tarantula-0.2.0 examples/relevance/core_extensions/file_example.rb
tarantula-rails3-0.3.3 examples/relevance/core_extensions/file_example.rb
panmind-tarantula-0.3.3 examples/relevance/core_extensions/file_example.rb
tarantula-0.3.3 examples/relevance/core_extensions/file_example.rb
tarantula-0.2.0 examples/relevance/core_extensions/file_example.rb
tarantula-0.1.8 examples/relevance/core_extensions/file_example.rb