Sha256: 1ed476661004e8177d947de96237dd7918396b5836b702055bd58f3a22cfce40
Contents?: true
Size: 728 Bytes
Versions: 2
Compression:
Stored size: 728 Bytes
Contents
require "spec_helper" module Fonte module Parsers describe RconParser do let(:parser) { described_class.new } subject { parser.parse(rcon_command) } context "with a successfully rcon challenge" do let(:rcon_command) { 'Rcon: "rcon challenge "password" command" from "192.168.10.1:17015"' } it_should_behave_like "a rcon command", :password => "password", :origin => "//192.168.10.1:17015" end context "with a bad rcon challenge" do let(:rcon_command) { 'Bad Rcon: "rcon challenge "password" command" from "192.168.10.1:17015"' } it_should_behave_like "a rcon command", :password => "password", :origin => "//192.168.10.1:17015" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fonte-0.1.0 | spec/parsers/rcon_parser_spec.rb |
fonte-0.0.1 | spec/parsers/rcon_parser_spec.rb |