Sha256: 5b38262e965d82c335caea1c0af9382d27ca65ea57f0befbe651bafe77467289

Contents?: true

Size: 754 Bytes

Versions: 32

Compression:

Stored size: 754 Bytes

Contents

RSpec.describe Flipper::Gate do
  let(:feature_name) { :stats }

  subject do
    described_class.new
  end

  describe '#inspect' do
    context 'for subclass' do
      let(:subclass) do
        Class.new(described_class) do
          def name
            :name
          end

          def key
            :key
          end

          def data_type
            :set
          end
        end
      end

      subject do
        subclass.new
      end

      it 'includes attributes' do
        string = subject.inspect
        expect(string).to include(subject.object_id.to_s)
        expect(string).to include('name=:name')
        expect(string).to include('key=:key')
        expect(string).to include('data_type=:set')
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
flipper-1.3.2 spec/flipper/gate_spec.rb
flipper-1.3.1 spec/flipper/gate_spec.rb
flipper-1.3.0 spec/flipper/gate_spec.rb
flipper-1.3.0.pre spec/flipper/gate_spec.rb
flipper-1.2.2 spec/flipper/gate_spec.rb
flipper-1.2.1 spec/flipper/gate_spec.rb
flipper-1.2.0 spec/flipper/gate_spec.rb
flipper-1.1.2 spec/flipper/gate_spec.rb
flipper-1.1.1 spec/flipper/gate_spec.rb
flipper-1.1.0 spec/flipper/gate_spec.rb
flipper-1.0.0 spec/flipper/gate_spec.rb
flipper-1.0.0.pre spec/flipper/gate_spec.rb
flipper-0.28.3 spec/flipper/gate_spec.rb
flipper-0.28.2 spec/flipper/gate_spec.rb
flipper-0.28.1 spec/flipper/gate_spec.rb
flipper-0.28.0 spec/flipper/gate_spec.rb
flipper-0.27.1 spec/flipper/gate_spec.rb
flipper-0.27.0 spec/flipper/gate_spec.rb
flipper-0.26.2 spec/flipper/gate_spec.rb
flipper-0.26.1 spec/flipper/gate_spec.rb