Sha256: 26a638305b2960a1bb64ebbc80e0e5a37213a6516df2b73bd483d1fcd77ec1b1
Contents?: true
Size: 1.19 KB
Versions: 3
Compression:
Stored size: 1.19 KB
Contents
require_relative '../spec_helper' describe Scrum::CardTypeDetection do let(:dummy_class) { Class.new { include Scrum::CardTypeDetection } } subject { dummy_class.new } let(:waterline_card) { instance_double('Card', name: 'waterline') } let(:upcase_waterline_card) { instance_double('Card', name: 'Waterline') } let(:fancy_waterline_card) { instance_double('Card', name: '~~~ WaTeR lInE ~~~') } let(:seabed_card) { instance_double('Card', name: 'seabed') } let(:fancy_seabed_card) { instance_double('Card', name: '!-! Sea Bed !-!') } it 'recognizes waterline string' do expect(subject.waterline?(waterline_card)).to be_truthy end it 'refuses non waterline name' do expect(subject.waterline?(seabed_card)).to be_falsy end it 'recognizes upcase spellings of waterline' do expect(subject.waterline?(upcase_waterline_card)).to be_truthy end it 'recognizes fancy spellings of waterline' do expect(subject.waterline?(fancy_waterline_card)).to be_truthy end it 'recognizes fancy spellings of seabed' do expect(subject.seabed?(fancy_seabed_card)).to be_truthy end it 'refuses non seabed name' do expect(subject.seabed?(waterline_card)).to be_falsy end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
trollolo-0.3.1 | spec/unit/scrum/card_type_detection_spec.rb |
trollolo-0.3.0 | spec/unit/scrum/card_type_detection_spec.rb |
trollolo-0.2.0 | spec/unit/scrum/card_type_detection_spec.rb |