Sha256: 0d28fcc5bbaa5120326bbc1a06203b7d831e7f714ffdb7482ba38a947ae2ebb5

Contents?: true

Size: 866 Bytes

Versions: 6

Compression:

Stored size: 866 Bytes

Contents

require 'spec_helper'

module GameMachine
  class CommandTest
    include Commands
  end

  describe Commands do

    subject do
      CommandTest.new
    end

    describe "#commands" do

      it "should be present on any instance that includes Commands module" do
        expect(subject.commands).to be_a(Commands::Base)
      end

      it "should have a chat instance" do
        expect(subject.commands.chat).to be_a(Commands::ChatCommands)
      end

      it "should have a grid instance" do
        expect(subject.commands.grid).to be_a(Commands::GridCommands)
      end

      it "should have a datastore instance" do
        expect(subject.commands.datastore).to be_a(Commands::DatastoreCommands)
      end

      it "should have a player instance" do
        expect(subject.commands.player).to be_a(Commands::PlayerCommands)
      end
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
game_machine-1.0.4 spec/commands_spec.rb
game_machine-1.0.2 spec/commands_spec.rb
game_machine-0.0.11 spec/commands_spec.rb
game_machine-0.0.10 spec/commands_spec.rb
game_machine-0.0.9 spec/commands_spec.rb
game_machine-0.0.8 spec/commands_spec.rb