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

Version Path
tmin-0.2.6 spec/firefly/code_factory_spec.rb
tmin-0.2.5 spec/firefly/code_factory_spec.rb
tmin-0.2.4 spec/firefly/code_factory_spec.rb
tmin-0.2.3 spec/firefly/code_factory_spec.rb
tmin-0.2.2 spec/firefly/code_factory_spec.rb
tmin-0.2.1 spec/firefly/code_factory_spec.rb
tmin-0.2.0 spec/firefly/code_factory_spec.rb
tmin-0.1.9 spec/firefly/code_factory_spec.rb
tmin-0.1.8 spec/firefly/code_factory_spec.rb
tmin-0.1.7 spec/firefly/code_factory_spec.rb
tmin-0.1.6 spec/firefly/code_factory_spec.rb
tmin_test-0.0.5 spec/firefly/code_factory_spec.rb
tmin_test-0.0.4 spec/firefly/code_factory_spec.rb
tmin_test-0.0.3 spec/firefly/code_factory_spec.rb
tmin_test-0.0.2 spec/firefly/code_factory_spec.rb
tmin_test-0.0.1 spec/firefly/code_factory_spec.rb
tmin-0.1.5 spec/firefly/code_factory_spec.rb
tmin-0.1.4 spec/firefly/code_factory_spec.rb
tmin-0.1.3 spec/firefly/code_factory_spec.rb
tmin-0.1.2 spec/firefly/code_factory_spec.rb