Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cesswairimu committed May 5, 2021
1 parent 34f3f93 commit bc97636
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/functional/stats_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ def setup
@start = 1.month.ago
@end = Date.today
@stats = [:notes, :comments, :users, :wikis, :questions, :answers, :tags, :node_tags]
activate_authlogic
end

test 'should assign correct value to graph_notes on GET stats' do
Expand Down
10 changes: 10 additions & 0 deletions test/integration/I18n_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,16 @@ class I18nTest < ActionDispatch::IntegrationTest
available_testing_locales.each do |lang|
get '/change_locale/' + lang.to_s
follow_redirect!

post '/user_sessions',
params: {
user_session: {
username: users(:jeff).username,
password: 'secretive'
}
}
follow_redirect!

start_time = 1.month.ago
end_time = Date.today
@graph_notes = Node.contribution_graph_making('note', start_time.to_time, end_time.to_time)
Expand Down

0 comments on commit bc97636

Please sign in to comment.