Sha256: 607cf50a0e79ca146b1a6abd11a5ebc6d874696111ee3d720a2bb441d60396b6
Contents?: true
Size: 525 Bytes
Versions: 1
Compression:
Stored size: 525 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe "Corto" do let(:corto) {Corto.new('spec/data/test_db.db')} it "should recreate a shortned url db" do corto.purge corto.count.should == 0 end it "should shrink an url" do a = corto.shrink('http://www.armoredcode.com') a.should.nil? == false end it "should able to reverse a shrink" do a = corto.shrink('http://www.armoredcode.com') b = corto.deflate(a) b.should == "http://www.armoredcode.com" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
corto-0.60.0 | spec/corto_spec.rb |