Skip to content

Commit

Permalink
Correct hound style errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Dayan committed Mar 29, 2017
1 parent 905e8eb commit 9b29760
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/merit/models/active_record/merit/score.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ class Score < ActiveRecord::Base
class_name: 'Merit::Score::Point'

def points
score_points.select('COALESCE(SUM(num_points), 0) AS num_points')
.first
.num_points
score_points.select("COALESCE(SUM(num_points), 0) AS num_points").
first.
num_points
end

class Point < ActiveRecord::Base
Expand Down
4 changes: 2 additions & 2 deletions test/integration/navigation_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ def teardown
end
end

test 'User#badge_count should return number of badges' do
user = User.create(name: 'test-user')
test "User#badge_count should return number of badges" do
user = User.create(name: "test-user")
assert_equal [], user.badges

badge = Merit::Badge.first
Expand Down

0 comments on commit 9b29760

Please sign in to comment.