enju_bookmark 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
@@ -56,8 +56,9 @@ class BookmarkStatHasManifestationsController < ApplicationController
|
|
56
56
|
# PUT /bookmark_stat_has_manifestations/1
|
57
57
|
# PUT /bookmark_stat_has_manifestations/1.json
|
58
58
|
def update
|
59
|
+
@bookmark_stat_has_manifestation.assign_attributes(params[:bookmark_stat_has_manifestation], :as => :admin)
|
59
60
|
respond_to do |format|
|
60
|
-
if @bookmark_stat_has_manifestation.
|
61
|
+
if @bookmark_stat_has_manifestation.save
|
61
62
|
format.html { redirect_to @bookmark_stat_has_manifestation, :notice => t('controller.successfully_updated', :model => t('activerecord.models.bookmark_stat_has_manifestation')) }
|
62
63
|
format.json { head :no_content }
|
63
64
|
else
|
data/app/models/tag.rb
CHANGED
@@ -309,12 +309,7 @@ describe BookmarkStatHasManifestationsController do
|
|
309
309
|
describe "with invalid params" do
|
310
310
|
it "assigns the requested bookmark_stat_has_manifestation as @bookmark_stat_has_manifestation" do
|
311
311
|
put :update, :id => @bookmark_stat_has_manifestation.id, :bookmark_stat_has_manifestation => @invalid_attrs
|
312
|
-
|
313
|
-
|
314
|
-
it "should ignore params" do
|
315
|
-
put :update, :id => @bookmark_stat_has_manifestation.id, :bookmark_stat_has_manifestation => @invalid_attrs
|
316
|
-
response.should redirect_to(assigns(:bookmark_stat_has_manifestation))
|
317
|
-
assigns(:bookmark_stat_has_manifestation).bookmark_stat.should be_true
|
312
|
+
response.should render_template("edit")
|
318
313
|
end
|
319
314
|
end
|
320
315
|
end
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|