Sha256: 4a843071545e767b5a00599cb420102bd489c597278c071b5c3857e3149c94ec

Contents?: true

Size: 287 Bytes

Versions: 8

Compression:

Stored size: 287 Bytes

Contents

require 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

8 entries across 8 versions & 2 rubygems

Version Path
relevance-tarantula-0.1.0 examples/relevance/core_extensions/file_example.rb
relevance-tarantula-0.1.1 examples/relevance/core_extensions/file_example.rb
relevance-tarantula-0.1.2 examples/relevance/core_extensions/file_example.rb
relevance-tarantula-0.1.3 examples/relevance/core_extensions/file_example.rb
relevance-tarantula-0.1.4 examples/relevance/core_extensions/file_example.rb
relevance-tarantula-0.1.5 examples/relevance/core_extensions/file_example.rb
tarantula-0.1.5 examples/relevance/core_extensions/file_example.rb
tarantula-0.1.4 examples/relevance/core_extensions/file_example.rb