giraffesoft-resource_controller 0.6.1 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml
CHANGED
@@ -56,6 +56,7 @@ module ResourceController
|
|
56
56
|
destroy do
|
57
57
|
flash "Successfully removed!"
|
58
58
|
wants.html { redirect_to collection_url }
|
59
|
+
failure.wants.html { redirect_to object_url }
|
59
60
|
end
|
60
61
|
|
61
62
|
class << self
|
@@ -66,4 +67,4 @@ module ResourceController
|
|
66
67
|
end
|
67
68
|
end
|
68
69
|
end
|
69
|
-
end
|
70
|
+
end
|
@@ -15,4 +15,14 @@ class ProjectsControllerTest < ActionController::TestCase
|
|
15
15
|
should_be_restful do |resource|
|
16
16
|
resource.formats = [:html]
|
17
17
|
end
|
18
|
+
|
19
|
+
context "on DELETE to :destroy that fails" do
|
20
|
+
setup do
|
21
|
+
Project.any_instance.stubs(:destroy).returns(false)
|
22
|
+
delete :destroy, :id => @project.to_param
|
23
|
+
end
|
24
|
+
|
25
|
+
should_respond_with :redirect
|
26
|
+
should_redirect_to "project_url(@project)"
|
27
|
+
end
|
18
28
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: giraffesoft-resource_controller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Golick
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-05-31 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -233,10 +233,7 @@ files:
|
|
233
233
|
- test/db/migrate/013_create_personnel.rb
|
234
234
|
- test/db/migrate/014_add_personnel_id_to_photos.rb
|
235
235
|
- test/db/schema.rb
|
236
|
-
- test/db/test.sqlite3
|
237
236
|
- test/log
|
238
|
-
- test/log/development.log
|
239
|
-
- test/log/test.log
|
240
237
|
- test/Rakefile
|
241
238
|
- test/script
|
242
239
|
- test/script/console
|
@@ -1 +0,0 @@
|
|
1
|
-
../../../
|