Sha256: 8d3d2d0cbdf583152dca20c2d87fdc4adfce644a945ee01846fdd011ac81d826
Contents?: true
Size: 622 Bytes
Versions: 3
Compression:
Stored size: 622 Bytes
Contents
require 'spec_helper' module GameMachine module Handlers describe Authentication do let(:handler) {double('Handler', :tell => true)} let(:actor_ref) {double('ActorRef', :ask => true)} let(:player) {MessageLib::Player.new.set_id('player').set_authtoken('authorized')} subject do Authentication.new end describe "authenticating a player" do context "player is authenticated" do it "authenticates player with valid authtoken" do expect(subject.authenticate!(player)).to be_truthy end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
game_machine-1.0.4 | spec/handlers/authentication_spec.rb |
game_machine-1.0.2 | spec/handlers/authentication_spec.rb |
game_machine-0.0.11 | spec/handlers/authentication_spec.rb |