Sha256: bc29011c7ae63c0b2278ba0fd984da28252e4a300d0ab22b01c461cf5401f9a1

Contents?: true

Size: 295 Bytes

Versions: 10

Compression:

Stored size: 295 Bytes

Contents

require 'flipper/identifier'

RSpec.describe Flipper::Identifier do
  describe '#flipper_id' do
    it 'uses class name and id' do
      class BlahBlah < Struct.new(:id)
        include Flipper::Identifier
      end
      expect(BlahBlah.new(5).flipper_id).to eq('BlahBlah;5')
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
flipper-1.3.2 spec/flipper/identifier_spec.rb
flipper-1.3.1 spec/flipper/identifier_spec.rb
flipper-1.3.0 spec/flipper/identifier_spec.rb
flipper-1.3.0.pre spec/flipper/identifier_spec.rb
flipper-1.2.2 spec/flipper/identifier_spec.rb
flipper-1.2.1 spec/flipper/identifier_spec.rb
flipper-1.2.0 spec/flipper/identifier_spec.rb
flipper-1.1.2 spec/flipper/identifier_spec.rb
flipper-1.1.1 spec/flipper/identifier_spec.rb
flipper-1.1.0 spec/flipper/identifier_spec.rb