Sha256: 71b05bab3e121f6c4cf8356d6e85f2ac335fd0a32571fbbcdfbabfeca8cff1a1
Contents?: true
Size: 759 Bytes
Versions: 1
Compression:
Stored size: 759 Bytes
Contents
require 'spec_helper' describe Hatsrank::Item do let(:item) { Hatsrank::Item.new } let(:descriptions) { [] } before do item.descriptions = descriptions end describe '#effects' do subject { item.effects } context 'no descriptions' do specify { should == [] } end context 'has descriptions' do let(:descriptions) { [Hatsrank::Description.new] } before do descriptions.first.value = description_text end context 'no effects' do let(:description_text) { 'lols no effect' } specify { should == [] } end context 'has an effect' do let(:description_text) { 'Effect: FLAMING FIRE FLAMES' } specify { should == descriptions } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hatsrank-0.0.1 | spec/hatsrank/item_spec.rb |