Sha256: 413a246ff0e3e73c0738f546f8db7a4d037571e7e84fd4b75621f019d14ce3ca

Contents?: true

Size: 414 Bytes

Versions: 7

Compression:

Stored size: 414 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
require File.expand_path(File.dirname(__FILE__) + '/../lib/utility')

describe "Helpers" do
  
  describe "underscore" do
    it "Source" do
      SinatraResource::Utility.underscore("Source").should == "source"
    end

    it "SourceGroup" do
      SinatraResource::Utility.underscore("SourceGroup").should == "source_group"
    end
  end
  
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sinatra_resource-0.4.21 spec/utility_spec.rb
sinatra_resource-0.4.20 spec/utility_spec.rb
sinatra_resource-0.4.19 spec/utility_spec.rb
sinatra_resource-0.4.18 spec/utility_spec.rb
sinatra_resource-0.4.17 spec/utility_spec.rb
sinatra_resource-0.4.16 spec/utility_spec.rb
sinatra_resource-0.4.15 spec/utility_spec.rb