require 'rails_helper'

describe Article do
	# let(:article_one) = Article.create()
	# it 'has a valid factory' do
	# 	expect(build(:article)).to be_valid
	# end

	# let(:ruby) { build(:article) }

	# describe "ActiveModel validations" do

	# 	it { expect(ruby).to validate_presence_of(:category_id) }
	# 	# it { expect(ruby).to validate_presence_of(:user_id) }
	# end

	it { should belong_to(:category) }
	it { should have_many(:edits) }

	describe '#with_unapproved_edits' do
		it 'should return articles with unapproved edits' do

			expect(true).to be false
		end
	end
end

require 'rails_helper'

describe Article do
	# let(:article_one) = Article.create()
	# it 'has a valid factory' do
	# 	expect(build(:article)).to be_valid
	# end

	# let(:ruby) { build(:article) }

	# describe "ActiveModel validations" do

	# 	it { expect(ruby).to validate_presence_of(:category_id) }
	# 	# it { expect(ruby).to validate_presence_of(:user_id) }
	# end

	it { should belong_to(:category) }
	it { should have_many(:edits) }

	# describe '#with_unapproved_edits' do
	# 	it 'should return articles with unapproved edits' do

	# 		expect(true).to be false
	# 	end
	# end
end

Remove article test for unapproved_edits
Remove article test for unapproved_edits
