infusionvlc/infusion

View on GitHub
test/models/activity_test.rb

Summary

Maintainability
A
0 mins
Test Coverage

Line is too long. [111/80]
Open

    activity = Activity.new(user_id: users(:one).id, objective_id: meetups(:one).id, objective_type: 'Meetup' )
Severity: Minor
Found in test/models/activity_test.rb by rubocop

Extra empty line detected at class body end.
Open


end
Severity: Minor
Found in test/models/activity_test.rb by rubocop

This cops checks if empty lines around the bodies of classes match the configuration.

Example: EnforcedStyle: empty_lines

# good

class Foo

  def bar
    # ...
  end

end

Example: EnforcedStyle: emptylinesexcept_namespace

# good

class Foo
  class Bar

    # ...

  end
end

Example: EnforcedStyle: emptylinesspecial

# good
class Foo

  def bar; end

end

Example: EnforcedStyle: noemptylines (default)

# good

class Foo
  def bar
    # ...
  end
end

Space inside parentheses detected.
Open

    activity = Activity.new(user_id: users(:one).id, objective_id: meetups(:one).id, objective_type: 'Meetup' )
Severity: Minor
Found in test/models/activity_test.rb by rubocop

Checks for spaces inside ordinary round parentheses.

Example:

# bad
f( 3)
g = (a + 3 )

# good
f(3)
g = (a + 3)

There are no issues that match your filters.

Category
Status