<commit_before>require 'spec_helper'

RSpec.describe Trello::Card do

  describe '.path_name' do
    specify { expect(Trello::Card.path_name).to eq('card') }
  end

  describe '.closed?' do
    specify { expect(Trello::Card.new('closed' => true).closed?).to eq(true) }
    specify { expect(Trello::Card.new('closed' => false).closed?).to eq(false) }
  end

end<commit_msg>Add unit test for Trello::Card#close<commit_after>require 'spec_helper'

RSpec.describe Trello::Card do

  describe '.path_name' do
    specify { expect(Trello::Card.path_name).to eq('card') }
  end

  describe '#closed?' do
    specify { expect(Trello::Card.new('closed' => true).closed?).to eq(true) }
    specify { expect(Trello::Card.new('closed' => false).closed?).to eq(false) }
  end

  describe '#close' do
    let(:card) { Trello::Card.new('closed' => false) }

    it 'can mark card as closed' do
      card.close
      expect(card.closed).to eq(true)
    end
  end

end
{'fraction_non_alphanumeric': 0.16281512605042017, 'fraction_numerical': 0.0, 'mean_word_length': 3.937823834196891, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '4985621', 'n_tokens_mistral': 340, 'n_tokens_neox': 329, 'n_words': 71}