Sha256: 025442af25ec15b30488a9297613b5eeacdf2da171b30b8029229f132f36c49d
Contents?: true
Size: 551 Bytes
Versions: 3
Compression:
Stored size: 551 Bytes
Contents
require 'spec_helper' RSpec.describe Smite::ItemEffect do let(:item) { Smite::Game.item('Sovereignty') } let(:smite_obj) { item.effects[0] } describe '#percentage?' do it 'returns true if the effect is percentage based' do allow(smite_obj).to receive(:percentage).and_return(40) expect(smite_obj.percentage?).to eq(true) end it 'returns false if the effect is not percentage based' do allow(smite_obj).to receive(:percentage).and_return(nil) expect(smite_obj.percentage?).to eq(false) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
smite_ruby-1.5.1 | spec/item_effect_spec.rb |
smite_ruby-1.5.0 | spec/item_effect_spec.rb |
smite_ruby-1.4.9 | spec/item_effect_spec.rb |