<commit_before>require 'rails_helper'
RSpec.describe ApplicationHelper, type: :helper do
	context 'Methods' do

	   describe 'checked' do
		  	it 'responds with unckecked check box if its false' do
		  		unckeckedbox = "<input type='checkbox'>"

		  		expect(checked(false)).to eq unckeckedbox
		  	end

		  	it 'responds with ckecked check box if its true' do
		  		unckeckedbox = "<input type='checkbox' checked>"

		  		expect(checked(true)).to eq unckeckedbox
		  	end
	   end

	   describe 'youtube_iframe' do
	   		it 'responds with html code for youtube player with a video id' do
	   			id = 'VIDEOID'

	   			iframe = "<iframe id='ytplayer' type='text/html' width='640' height='390'
		  src='https://www.youtube.com/embed/#{id}?autoplay'=1='0'/></iframe>"

	   			expect(youtube_iframe(id)).to eq iframe
	   		end
	   end

	   describe 'paypal_url' do
	   		it 'returns paypal link for quantity 10 for Curso Basico' do
	   			quantity = 10

	   			pay_url = "<a href='https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_xclick&business=antonioc3brian%2dfacilitator%40gmail%2ecom&lc=US&item_name=Curso%20Basico&item_number=1&amount=10%2e00&currency_code=USD&notify_url=https%3a%2f%2fgentle%2dwaters%2d42879%2eherokuapp%2ecom%2fpayed%2f&return=https%3a%2f%2fgentle%2dwaters%2d42879%2eherokuapp%2ecom%2fpayed%2f&button_subtype=services&no_note=0&bn=PP%2dBuyNowBF%3abtn_buynowCC_LG%2egif%3aNonHostedGuest'>Curso Basico</a>"

	   			expect(paypal_url(quantity)).to eq pay_url
	   		end<commit_msg>Modified helpers test for changes in models<commit_after>require 'rails_helper'
RSpec.describe ApplicationHelper, type: :helper do
	context 'Methods' do

	   describe 'checked' do
		  	it 'responds with unckecked radio if its field right is 0' do
		  		right = '0'

		  		unckeckedbox = "<input type='radio' disabled='true'>"

		  		expect(checked(right)).to eq unckeckedbox
		  	end

		  	it 'responds with ckecked radio if its  field right is 1' do
		  		right = '1'

		  		unckeckedbox = "<input type='radio' checked disabled='true'>"

		  		expect(checked(right)).to eq unckeckedbox
		  	end
	   end

	   describe 'youtube_iframe' do
	   		it 'responds with html code for youtube player with a video id' do
	   			id = 'VIDEOID'

	   			iframe = "<iframe id='ytplayer' type='text/html' width='640' height='390'
		  src='https://www.youtube.com/embed/#{id}?autoplay'=1='0'/></iframe>"

	   			expect(youtube_iframe(id)).to eq iframe
	   		end
	   end

	   describe 'paypal_url' do
	   		it 'returns paypal link for quantity 10 for Curso Basico' do
	   			quantity = 10

	   			pay_url = "<a href='https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_xclick&business=antonioc3brian%2dfacilitator%40gmail%2ecom&lc=US&item_name=Curso%20Basico&item_number=1&amount=10%2e00&currency_code=USD&notify_url=https%3a%2f%2fgentle%2dwaters%2d42879%2eherokuapp%2ecom%2fpayed%2f&return=https%3a%2f%2fgentle%2dwaters%2d42879%2eherokuapp%2ecom%2fpayed%2f&button_subtype=services&no_note=0&bn=PP%2dBuyNowBF%3abtn_buynowCC_LG%2egif%3aNonHostedGuest'>Curso Basico</a>"

	   			expect(paypal_url(quantity)).to eq pay_url
	   		end
{'fraction_non_alphanumeric': 0.1170041787206686, 'fraction_numerical': 0.03857280617164899, 'mean_word_length': 4.310580204778157, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, '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': '3210840', 'n_tokens_mistral': 1361, 'n_tokens_neox': 1178, 'n_words': 221}