<commit_before>require "spec_helper"

RSpec.describe Realms::Actions::UsePrimaryAbility do
  let(:game) { Realms::Game.new }
  let(:card) { Realms::Cards::BlobWheel.new(game.p1) }
  let(:action) { described_class.new(card) }

  before do
    game.p1.deck.battlefield << card
    game.start
    game.decide(:primary, :blob_wheel_0)
  end

  it do
    expect(game.active_turn.combat).to eq(1)
  end
end<commit_msg>add another spec ensuring you can't use base ability twice<commit_after>require "spec_helper"

RSpec.describe Realms::Actions::UsePrimaryAbility do
  let(:game) { Realms::Game.new }
  let(:card) { Realms::Cards::BlobWheel.new(game.p1) }
  let(:action) { described_class.new(card) }

  before do
    game.p1.deck.battlefield << card
    game.start
    game.decide(:primary, :blob_wheel_0)
  end

  it do
    expect(game.active_turn.combat).to eq(1)
    expect(game.current_choice.options[:primary]).to be_empty
  end
end
{'fraction_non_alphanumeric': 0.13426423200859292, 'fraction_numerical': 0.008592910848549946, 'mean_word_length': 4.38728323699422, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5437742', 'n_tokens_mistral': 344, 'n_tokens_neox': 336, 'n_words': 60}