Showing 106 of 4,066 total issues
File proposals_spec.rb
has 1385 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require 'rails_helper'
feature 'Proposals' do
scenario 'Disabled with a feature flag' do
File investments_spec.rb
has 1317 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require 'rails_helper'
require 'sessions_helper'
feature 'Budget Investments' do
File budget_investments_spec.rb
has 1070 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require 'rails_helper'
feature 'Admin budget investments' do
let(:budget) { create(:budget) }
File debates_spec.rb
has 874 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require 'rails_helper'
feature 'Debates' do
before do
File investment_spec.rb
has 844 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require 'rails_helper'
describe Budget::Investment do
let(:investment) { build(:budget_investment) }
File topics_spec.rb
has 838 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require 'rails_helper'
include ActionView::Helpers::DateHelper
feature 'Commenting topics from proposals' do
let(:user) { create :user }
File proposal_spec.rb
has 757 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require 'rails_helper'
describe Proposal do
let(:proposal) { build(:proposal) }
File debate_spec.rb
has 590 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require 'rails_helper'
describe Debate do
let(:debate) { build(:debate) }
File legislation_annotations_spec.rb
has 543 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require 'rails_helper'
include ActionView::Helpers::DateHelper
feature 'Commenting legislation questions' do
let(:user) { create :user }
File user_spec.rb
has 541 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require 'rails_helper'
describe User do
describe "#debate_votes" do
File graphql_spec.rb
has 517 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require 'rails_helper'
api_types = GraphQL::ApiTypesCreator.create(API_TYPE_DEFINITIONS)
query_type = GraphQL::QueryTypeCreator.create(api_types)
ConsulSchema = GraphQL::Schema.define do
File ballots_spec.rb
has 486 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require 'rails_helper'
feature 'Ballots' do
let!(:user) { create(:user, :level_two) }
Class User
has 49 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class User < ActiveRecord::Base
include Verification
devise :database_authenticatable, :registerable, :confirmable, :recoverable, :rememberable,
Class Investment
has 47 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Investment < ActiveRecord::Base
SORTING_OPTIONS = %w(id title supports).freeze
include Rails.application.routes.url_helpers
include Measurable
File emails_spec.rb
has 419 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require 'rails_helper'
feature 'Emails' do
background do
File budget_investments_spec.rb
has 409 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require 'rails_helper'
feature 'Valuation budget investments' do
let(:budget) { create(:budget, :valuating) }
File legislation_questions_spec.rb
has 406 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require 'rails_helper'
include ActionView::Helpers::DateHelper
feature 'Commenting legislation questions' do
File users_spec.rb
has 395 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require 'rails_helper'
feature 'Users' do
before do
File budget_investments_spec.rb
has 386 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require 'rails_helper'
include ActionView::Helpers::DateHelper
feature 'Commenting Budget::Investments' do
File debates_spec.rb
has 385 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require 'rails_helper'
include ActionView::Helpers::DateHelper
feature 'Commenting debates' do
let(:user) { create :user }