<commit_before>require 'simplecov'
require 'coveralls'

require "spec_helper"
require "rails_helper"
require "usuario"
require "usuarios_controller"

describe UsuariosController do
	describe "POST" do
		it "New User" do
			@usuario = Usuario.new
			@usuario.should be_an_instance_of Usuario
		end

	end

end<commit_msg>Refactoring test of user controller<commit_after>require 'simplecov'
require 'coveralls'

require "spec_helper"
require "rails_helper"
require "usuario"
require "usuarios_controller"

describe UsuariosController, :type => :controller do
	describe "GET user" do
		let(:user) {Usuario.create(:nome =>"test", :login=>"123455", :email=>"<EMAIL>",:password=>"<PASSWORD>", :password_confirmation=>"<PASSWORD>", :telefone=>"123456")}

		before do
			user
		end

		it "new user" do
			user = Usuario.new
			expect(user).to be_instance_of(Usuario)
		end

		it "create user" do
			user = Usuario.create(:nome =>"test", :login=>"123455", :email=>"<EMAIL>",:password=>"<PASSWORD>", :password_confirmation=>"<PASSWORD>", :telefone=>"123456")
			expect(user.nome).to eq("test")
		end
	end	
end
{'fraction_non_alphanumeric': 0.1448087431693989, 'fraction_numerical': 0.02185792349726776, 'mean_word_length': 6.090322580645161, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 22, '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': '7553052', 'n_tokens_mistral': 436, 'n_tokens_neox': 390, 'n_words': 90}