Revision b3b90601
Added by Martin Bacovsky almost 12 years ago
- ID b3b90601f87e1d7056daed5d5006e9cabec5c347
app/views/api/v1/bookmarks/update.json.rabl | ||
---|---|---|
object @bookmark
|
||
attributes :name, :controller, :query, :public, :id
|
||
child :owner do
|
||
attributes :name
|
||
attributes :login
|
||
attributes :mail, :as => :email
|
||
end
|
||
|
test/functional/api/v1/bookmarks_controller_test.rb | ||
---|---|---|
end
|
||
|
||
test "should show bookmark" do
|
||
get :show, {:id => :one}, set_session_user
|
||
get :show, {:id => bookmarks(:one).to_param}, set_session_user
|
||
assert_response :success
|
||
end
|
||
|
||
... | ... | |
assert_response :success
|
||
end
|
||
|
||
|
||
test "should update bookmark" do
|
||
put :update, {:id => bookmarks(:one).to_param, :bookmark => {} }, set_session_user
|
||
assert_response :success
|
Also available in: Unified diff
Fixed bookmark tests (API v1)