Sha256: 54fba96d77637886a8c358ba77fcf4ad697bbf2e197c9b840d492e7609b2d8ec

Contents?: true

Size: 374 Bytes

Versions: 5

Compression:

Stored size: 374 Bytes

Contents

# frozen_string_literal: true

RSpec.describe <%= camelcase(name) %>::Subplot do
  let(:plot) { <%= camelcase(name) %>::Plot.new }

  it 'branches from plots' do
    actor = plot.introduce
    subplot = plot.branch(<%= camelcase(name) %>::Subplot, introduce: actor)
    expect(plot.subplots).to eq([subplot])
    expect(subplot.players).to eq([actor])
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gamefic-sdk-4.1.0 scaffolds/project/spec/__name__/subplot_spec.rb.gf.erb
gamefic-sdk-4.0.1 scaffolds/project/spec/__name__/subplot_spec.rb.gf.erb
gamefic-sdk-4.0.0 scaffolds/project/spec/__name__/subplot_spec.rb.gf.erb
gamefic-sdk-3.4.1 scaffolds/project/spec/__name__/subplot_spec.rb.gf.erb
gamefic-sdk-3.4.0 scaffolds/project/spec/__name__/subplot_spec.rb.gf.erb