<commit_before>require "rspec/expectations"
require "card_deck/deck"
require "spec_helper"
RSpec::Matchers.define :have_jokers do
	match do |actual|
		jokers = false
		for card in actual
			jokers = true if card.num == "Joker"
		end
		return jokers
	end
end
include CardDeck
RSpec.describe Deck do
	describe "#new" do
		subject {Deck.new}
		it {is_expected.to respond_to(:cards, :inspect)}
		its(:cards) {is_expected.to_not have_jokers}
		context ":jokers == true" do
			subject {Deck.new jokers: true}
			its(:cards) {is_expected.to have_jokers}
		end
	end
end<commit_msg>Update deck_spec.rb<commit_after>require "rspec/expectations"
require "card_deck/deck"
require "spec_helper"
RSpec::Matchers.define :have_jokers do
	match do |actual|
		jokers = false
		for card in actual
			jokers = true if card.num == "Joker"
		end
		return jokers
	end
end
include CardDeck
RSpec.describe Deck do
	it "should have a working constructor" do
		expect{Deck()}.to_not raise_error}
	end
	describe "#new" do
		subject {Deck.new}
		it {is_expected.to respond_to(:cards, :inspect)}
		its(:cards) {is_expected.to_not have_jokers}
		context ":jokers == true" do
			subject {Deck.new jokers: true}
			its(:cards) {is_expected.to have_jokers}
		end
	end
end
{'fraction_non_alphanumeric': 0.10428455941794665, 'fraction_numerical': 0.0, 'mean_word_length': 4.526785714285714, 'pattern_counts': {'":': 2, '<': 3, '<?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': '2719857', 'n_tokens_mistral': 502, 'n_tokens_neox': 450, 'n_words': 128}