Skip to content

Commit

Permalink
fix: statistics test
Browse files Browse the repository at this point in the history
  • Loading branch information
shaojunda committed Jun 28, 2019
1 parent 770da00 commit c883f95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/controllers/api/v1/statistics_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class StatisticsControllerTest < ActionDispatch::IntegrationTest
end

test "should return right statistic info" do
StatisticInfo.any_instance.stubs(:id).returns(1)
statistic_info = StatisticInfo.new

valid_get api_v1_statistics_url
Expand Down

0 comments on commit c883f95

Please sign in to comment.