require "spec_helper" module Fonte module Parsers describe PlayerParser do let(:parser) { described_class.new } subject { parser.parse(player) } context "when the player is a default source player" do let(:player) { "Reu<2>" } it { should be } end context "when the player is a left4dead2 player" do let(:player) { "Pulo_ms<8><100+0>" } it { should be } end end end end