spec/friend_spec.rb in smite_ruby-1.4.5 vs spec/friend_spec.rb in smite_ruby-1.4.6

- old
+ new

@@ -1,7 +1,14 @@ require 'spec_helper' RSpec.describe Smite::Friend do - it 'tests' do + let(:player) { Smite::Game.player('adapting') } + let(:smite_obj) { player.friends[0] } + describe '#to_player' do + it 'returns a Smite::Player instance of this friend' do + expect(smite_obj.to_player.class).to eq(Smite::Player) + end end + + it_behaves_like 'a Smite::Object' end \ No newline at end of file