Sha256: 8f7543850b002e123682beca70c10656a36cf518bcb5bbb73f6a44d2b0601b22

Contents?: true

Size: 341 Bytes

Versions: 3

Compression:

Stored size: 341 Bytes

Contents

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

3 entries across 3 versions & 1 rubygems

Version Path
gamefic-sdk-3.3.0 scaffolds/project/spec/__name__/subplot_spec.rb.gf.erb
gamefic-sdk-3.2.1 scaffolds/project/spec/__name__/subplot_spec.rb.gf.erb
gamefic-sdk-3.2.0 scaffolds/project/spec/__name__/subplot_spec.rb.gf.erb