Sha256: ab0d4952bd149e4ce12e2bcc838f47221d65dc4f2278f7a449fd1e8dd9291281

Contents?: true

Size: 468 Bytes

Versions: 2

Compression:

Stored size: 468 Bytes

Contents

# frozen_string_literal: true

RSpec.describe 'gameplay' do
  let(:plot) { GAMEFIC_PLOT_CLASS.new }

  let(:commands) do
    # Customize this array of commands to reach a conclusion
    [
      'look around'
    ]
  end

  it 'reaches a conclusion' do
    player = plot.introduce
    player.queue.concat commands
    plot.ready
    until player.queue.empty?
      plot.update
      plot.ready
    end
    expect(plot).to be_concluding
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gamefic-sdk-3.4.1 scaffolds/project/spec/gameplay_spec.rb
gamefic-sdk-3.4.0 scaffolds/project/spec/gameplay_spec.rb