Sha256: 53d650e080e3d81827b6dd533ac8c5102a8fd80c357fd9b4eb4d33f5fc5ca0c6
Contents?: true
Size: 366 Bytes
Versions: 39
Compression:
Stored size: 366 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe "CodeFactory" do describe "next!" do it "should return the next code_count" do current_count = Firefly::CodeFactory.first.count expected_code = Firefly::Base62.encode(current_count + 1) Firefly::CodeFactory.next_code!.should eql(expected_code) end end end
Version data entries
39 entries across 39 versions & 4 rubygems