Sha256: b15b311174aa48d02a31e0e87660d00b021e3f6581c1e90ce180f736593dd0cc

Contents?: true

Size: 348 Bytes

Versions: 3

Compression:

Stored size: 348 Bytes

Contents

require 'spec_helper'
module Qrb
  describe AdType, "include?" do

    let(:type){ AdType.new(Color, {}) }

    subject{ type.include?(arg) }

    context 'when not included' do
      let(:arg){ "12" }

      it{ should be_false }
    end

    context 'when included' do
      let(:arg){ blueviolet }

      it{ should be_true }
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
qrb-0.3.0 spec/unit/type/ad_type/test_include.rb
qrb-0.2.0 spec/unit/type/ad_type/test_include.rb
qrb-0.1.0 spec/unit/type/ad_type/test_include.rb