You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hello. playing around with merit. simple, does the job, like it.
everything in the app looks fine but I got an error while testing.
I guess there something missing in my test_helper but I couldn't find any clue in the docs nor the code.
Error: test_should_update_user(UsersControllerTest)
ActiveRecord::StatementInvalid: PG::Error: ERROR: relation "merit_actions" does not exist
LINE 4: WHERE a.attrelid = '"merit_actions"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"merit_actions"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
test/functional/users_controller_test.rb:43:in `block in <class:UsersControllerTest>'
40: end
41:
42: test "should update user" do
=> 43: put :update, :id => @user.to_param, :user => @user.attributes
44: # assert_redirected_to user_path(assigns(:user))
45: assert_redirected_to user_settings_path
46: end
the test is simply:
test "should update user" do
put :update, :id => @user.to_param, :user => @user.attributes
# assert_redirected_to user_path(assigns(:user))
assert_redirected_to user_settings_path
end
The text was updated successfully, but these errors were encountered:
hello. playing around with merit. simple, does the job, like it.
everything in the app looks fine but I got an error while testing.
I guess there something missing in my test_helper but I couldn't find any clue in the docs nor the code.
the test is simply:
The text was updated successfully, but these errors were encountered: