makandra_resource_controller 0.7.3 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +2 -2
- data/lib/resource_controller/accessors.rb +13 -9
- data/test/Gemfile +3 -3
- data/test/Gemfile.lock +114 -0
- data/test/app/views/cms/options/{edit.rhtml → edit.html.erb} +0 -0
- data/test/app/views/cms/options/{index.rhtml → index.html.erb} +0 -0
- data/test/app/views/cms/options/{new.rhtml → new.html.erb} +0 -0
- data/test/app/views/cms/options/{show.rhtml → show.html.erb} +0 -0
- data/test/app/views/cms/photos/{edit.rhtml → edit.html.erb} +0 -0
- data/test/app/views/cms/photos/{index.rhtml → index.html.erb} +0 -0
- data/test/app/views/cms/photos/{new.rhtml → new.html.erb} +0 -0
- data/test/app/views/cms/photos/{show.rhtml → show.html.erb} +0 -0
- data/test/app/views/cms/products/{edit.rhtml → edit.html.erb} +0 -0
- data/test/app/views/cms/products/{index.rhtml → index.html.erb} +0 -0
- data/test/app/views/cms/products/{new.rhtml → new.html.erb} +0 -0
- data/test/app/views/cms/products/{show.rhtml → show.html.erb} +0 -0
- data/test/app/views/comments/{edit.rhtml → edit.html.erb} +0 -0
- data/test/app/views/comments/{index.rhtml → index.html.erb} +0 -0
- data/test/app/views/comments/{new.rhtml → new.html.erb} +0 -0
- data/test/app/views/comments/{show.rhtml → show.html.erb} +0 -0
- data/test/app/views/layouts/{application.rhtml → application.html.erb} +0 -0
- data/test/app/views/layouts/{comments.rhtml → comments.html.erb} +0 -0
- data/test/app/views/layouts/{options.rhtml → options.html.erb} +0 -0
- data/test/app/views/layouts/{people.rhtml → people.html.erb} +0 -0
- data/test/app/views/layouts/{photos.rhtml → photos.html.erb} +0 -0
- data/test/app/views/layouts/{projects.rhtml → projects.html.erb} +0 -0
- data/test/app/views/layouts/{somethings.rhtml → somethings.html.erb} +0 -0
- data/test/app/views/layouts/{tags.rhtml → tags.html.erb} +0 -0
- data/test/app/views/people/{edit.rhtml → edit.html.erb} +0 -0
- data/test/app/views/people/{index.rhtml → index.html.erb} +0 -0
- data/test/app/views/people/{new.rhtml → new.html.erb} +0 -0
- data/test/app/views/people/{show.rhtml → show.html.erb} +0 -0
- data/test/app/views/photos/{edit.rhtml → edit.html.erb} +0 -0
- data/test/app/views/photos/{index.rhtml → index.html.erb} +0 -0
- data/test/app/views/photos/{new.rhtml → new.html.erb} +0 -0
- data/test/app/views/photos/{show.rhtml → show.html.erb} +0 -0
- data/test/app/views/posts/{edit.rhtml → edit.html.erb} +0 -0
- data/test/app/views/posts/{index.rhtml → index.html.erb} +0 -0
- data/test/app/views/posts/{new.rhtml → new.html.erb} +0 -0
- data/test/app/views/posts/{show.rhtml → show.html.erb} +0 -0
- data/test/app/views/projects/{edit.rhtml → edit.html.erb} +0 -0
- data/test/app/views/projects/{index.rhtml → index.html.erb} +0 -0
- data/test/app/views/projects/{new.rhtml → new.html.erb} +0 -0
- data/test/app/views/projects/{show.rhtml → show.html.erb} +0 -0
- data/test/app/views/somethings/{edit.rhtml → edit.html.erb} +0 -0
- data/test/app/views/somethings/{index.rhtml → index.html.erb} +0 -0
- data/test/app/views/somethings/{new.rhtml → new.html.erb} +0 -0
- data/test/app/views/somethings/{show.rhtml → show.html.erb} +0 -0
- data/test/app/views/tags/{edit.rhtml → edit.html.erb} +0 -0
- data/test/app/views/tags/{index.rhtml → index.html.erb} +0 -0
- data/test/app/views/tags/{new.rhtml → new.html.erb} +0 -0
- data/test/app/views/tags/{show.rhtml → show.html.erb} +0 -0
- data/test/app/views/users/{edit.rhtml → edit.html.erb} +0 -0
- data/test/app/views/users/{index.rhtml → index.html.erb} +0 -0
- data/test/app/views/users/{new.rhtml → new.html.erb} +0 -0
- data/test/app/views/users/{show.rhtml → show.html.erb} +0 -0
- data/test/config/environments/development.rb +3 -3
- data/test/config/environments/test.rb +2 -2
- data/test/test/functional/cms/options_controller_test.rb +3 -3
- data/test/test/functional/comments_controller_test.rb +4 -4
- data/test/test/functional/images_controller_test.rb +1 -1
- data/test/test/functional/people_controller_test.rb +3 -3
- data/test/test/functional/photos_controller_test.rb +3 -3
- data/test/test/functional/posts_controller_test.rb +1 -1
- data/test/test/functional/projects_controller_test.rb +3 -3
- data/test/test/functional/tags_controller_test.rb +1 -1
- data/test/test/functional/users_controller_test.rb +3 -3
- metadata +59 -58
data/VERSION.yml
CHANGED
@@ -30,12 +30,14 @@ module ResourceController # :nodoc:
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def class_scoping_reader(accessor_name, start_value)
|
33
|
-
|
33
|
+
private_accessor_name = "_#{accessor_name}"
|
34
|
+
class_attribute private_accessor_name
|
35
|
+
self.__send__("#{private_accessor_name}=", start_value)
|
34
36
|
|
35
37
|
class_eval <<-"end_eval", __FILE__, __LINE__
|
36
38
|
def self.#{accessor_name}(&block)
|
37
|
-
|
38
|
-
|
39
|
+
self.#{private_accessor_name}.instance_eval(&block) if block_given?
|
40
|
+
self.#{private_accessor_name}
|
39
41
|
end
|
40
42
|
end_eval
|
41
43
|
end
|
@@ -53,22 +55,24 @@ module ResourceController # :nodoc:
|
|
53
55
|
def class_reader_writer(*accessor_names)
|
54
56
|
accessor_names.each do |accessor_name|
|
55
57
|
class_eval <<-"end_eval", __FILE__, __LINE__
|
58
|
+
class_attribute :_#{accessor_name}
|
59
|
+
|
56
60
|
def self.#{accessor_name}(*args)
|
57
61
|
unless args.empty?
|
58
|
-
|
59
|
-
|
62
|
+
self._#{accessor_name} = args.first if args.length == 1
|
63
|
+
self._#{accessor_name} = args if args.length > 1
|
60
64
|
end
|
61
65
|
|
62
|
-
|
66
|
+
self._#{accessor_name}
|
63
67
|
end
|
64
68
|
|
65
69
|
def #{accessor_name}(*args)
|
66
70
|
unless args.empty?
|
67
|
-
self.class.
|
68
|
-
self.class.
|
71
|
+
self.class._#{accessor_name} = args.first if args.length == 1
|
72
|
+
self.class._#{accessor_name} = args if args.length > 1
|
69
73
|
end
|
70
74
|
|
71
|
-
self.class.
|
75
|
+
self.class._#{accessor_name}
|
72
76
|
end
|
73
77
|
end_eval
|
74
78
|
end
|
data/test/Gemfile
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
source 'http://rubygems.org'
|
2
2
|
|
3
|
-
gem 'rails', '=3.
|
4
|
-
gem 'sqlite3
|
3
|
+
gem 'rails', '=3.2.3'
|
4
|
+
gem 'sqlite3', '=1.3.6'
|
5
5
|
gem "makandra_resource_controller", :path => "../"
|
6
6
|
|
7
7
|
gem 'redgreen', '=1.2.2'
|
8
8
|
|
9
9
|
group :test do
|
10
|
-
gem "shoulda", '=
|
10
|
+
gem "shoulda", '=3.0.1'
|
11
11
|
gem "mocha", '=0.9.9'
|
12
12
|
gem "ruby-debug", '=0.10.4'
|
13
13
|
end
|
data/test/Gemfile.lock
ADDED
@@ -0,0 +1,114 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../
|
3
|
+
specs:
|
4
|
+
makandra_resource_controller (0.8.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: http://rubygems.org/
|
8
|
+
specs:
|
9
|
+
actionmailer (3.2.3)
|
10
|
+
actionpack (= 3.2.3)
|
11
|
+
mail (~> 2.4.4)
|
12
|
+
actionpack (3.2.3)
|
13
|
+
activemodel (= 3.2.3)
|
14
|
+
activesupport (= 3.2.3)
|
15
|
+
builder (~> 3.0.0)
|
16
|
+
erubis (~> 2.7.0)
|
17
|
+
journey (~> 1.0.1)
|
18
|
+
rack (~> 1.4.0)
|
19
|
+
rack-cache (~> 1.2)
|
20
|
+
rack-test (~> 0.6.1)
|
21
|
+
sprockets (~> 2.1.2)
|
22
|
+
activemodel (3.2.3)
|
23
|
+
activesupport (= 3.2.3)
|
24
|
+
builder (~> 3.0.0)
|
25
|
+
activerecord (3.2.3)
|
26
|
+
activemodel (= 3.2.3)
|
27
|
+
activesupport (= 3.2.3)
|
28
|
+
arel (~> 3.0.2)
|
29
|
+
tzinfo (~> 0.3.29)
|
30
|
+
activeresource (3.2.3)
|
31
|
+
activemodel (= 3.2.3)
|
32
|
+
activesupport (= 3.2.3)
|
33
|
+
activesupport (3.2.3)
|
34
|
+
i18n (~> 0.6)
|
35
|
+
multi_json (~> 1.0)
|
36
|
+
arel (3.0.2)
|
37
|
+
builder (3.0.0)
|
38
|
+
columnize (0.3.6)
|
39
|
+
erubis (2.7.0)
|
40
|
+
hike (1.2.1)
|
41
|
+
i18n (0.6.0)
|
42
|
+
journey (1.0.3)
|
43
|
+
json (1.7.3)
|
44
|
+
linecache (0.46)
|
45
|
+
rbx-require-relative (> 0.0.4)
|
46
|
+
mail (2.4.4)
|
47
|
+
i18n (>= 0.4.0)
|
48
|
+
mime-types (~> 1.16)
|
49
|
+
treetop (~> 1.4.8)
|
50
|
+
mime-types (1.18)
|
51
|
+
mocha (0.9.9)
|
52
|
+
rake
|
53
|
+
multi_json (1.3.6)
|
54
|
+
polyglot (0.3.3)
|
55
|
+
rack (1.4.1)
|
56
|
+
rack-cache (1.2)
|
57
|
+
rack (>= 0.4)
|
58
|
+
rack-ssl (1.3.2)
|
59
|
+
rack
|
60
|
+
rack-test (0.6.1)
|
61
|
+
rack (>= 1.0)
|
62
|
+
rails (3.2.3)
|
63
|
+
actionmailer (= 3.2.3)
|
64
|
+
actionpack (= 3.2.3)
|
65
|
+
activerecord (= 3.2.3)
|
66
|
+
activeresource (= 3.2.3)
|
67
|
+
activesupport (= 3.2.3)
|
68
|
+
bundler (~> 1.0)
|
69
|
+
railties (= 3.2.3)
|
70
|
+
railties (3.2.3)
|
71
|
+
actionpack (= 3.2.3)
|
72
|
+
activesupport (= 3.2.3)
|
73
|
+
rack-ssl (~> 1.3.2)
|
74
|
+
rake (>= 0.8.7)
|
75
|
+
rdoc (~> 3.4)
|
76
|
+
thor (~> 0.14.6)
|
77
|
+
rake (0.9.2.2)
|
78
|
+
rbx-require-relative (0.0.9)
|
79
|
+
rdoc (3.12)
|
80
|
+
json (~> 1.4)
|
81
|
+
redgreen (1.2.2)
|
82
|
+
ruby-debug (0.10.4)
|
83
|
+
columnize (>= 0.1)
|
84
|
+
ruby-debug-base (~> 0.10.4.0)
|
85
|
+
ruby-debug-base (0.10.4)
|
86
|
+
linecache (>= 0.3)
|
87
|
+
shoulda (3.0.1)
|
88
|
+
shoulda-context (~> 1.0.0)
|
89
|
+
shoulda-matchers (~> 1.0.0)
|
90
|
+
shoulda-context (1.0.0)
|
91
|
+
shoulda-matchers (1.0.0)
|
92
|
+
sprockets (2.1.3)
|
93
|
+
hike (~> 1.2)
|
94
|
+
rack (~> 1.0)
|
95
|
+
tilt (~> 1.1, != 1.3.0)
|
96
|
+
sqlite3 (1.3.6)
|
97
|
+
thor (0.14.6)
|
98
|
+
tilt (1.3.3)
|
99
|
+
treetop (1.4.10)
|
100
|
+
polyglot
|
101
|
+
polyglot (>= 0.3.1)
|
102
|
+
tzinfo (0.3.33)
|
103
|
+
|
104
|
+
PLATFORMS
|
105
|
+
ruby
|
106
|
+
|
107
|
+
DEPENDENCIES
|
108
|
+
makandra_resource_controller!
|
109
|
+
mocha (= 0.9.9)
|
110
|
+
rails (= 3.2.3)
|
111
|
+
redgreen (= 1.2.2)
|
112
|
+
ruby-debug (= 0.10.4)
|
113
|
+
shoulda (= 3.0.1)
|
114
|
+
sqlite3 (= 1.3.6)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -10,10 +10,10 @@ TestApp::Application.configure do
|
|
10
10
|
config.whiny_nils = true
|
11
11
|
|
12
12
|
# Show full error reports and disable caching
|
13
|
-
config.action_controller.consider_all_requests_local = true
|
13
|
+
# config.action_controller.consider_all_requests_local = true
|
14
14
|
config.action_controller.perform_caching = false
|
15
|
-
config.action_view.debug_rjs = true
|
15
|
+
# config.action_view.debug_rjs = true
|
16
16
|
|
17
17
|
# Don't care if the mailer can't send
|
18
18
|
config.action_mailer.raise_delivery_errors = false
|
19
|
-
end
|
19
|
+
end
|
@@ -11,7 +11,7 @@ TestApp::Application.configure do
|
|
11
11
|
config.whiny_nils = true
|
12
12
|
|
13
13
|
# Show full error reports and disable caching
|
14
|
-
config.consider_all_requests_local = true
|
14
|
+
# config.consider_all_requests_local = true
|
15
15
|
config.action_controller.perform_caching = false
|
16
16
|
|
17
17
|
# Raise exceptions instead of rendering exception templates
|
@@ -31,4 +31,4 @@ TestApp::Application.configure do
|
|
31
31
|
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
32
32
|
# like if you have constraints or database-specific column types
|
33
33
|
# config.active_record.schema_format = :sql
|
34
|
-
end
|
34
|
+
end
|
@@ -78,7 +78,7 @@ class Cms::OptionsControllerTest < ActionController::TestCase
|
|
78
78
|
get :edit, :product_id => @product.id, :id => @option.id
|
79
79
|
end
|
80
80
|
|
81
|
-
should assign_to(:option).with
|
81
|
+
should assign_to(:option).with { @option }
|
82
82
|
should respond_with :success
|
83
83
|
should render_with_layout :application
|
84
84
|
should render_template :edit
|
@@ -91,7 +91,7 @@ class Cms::OptionsControllerTest < ActionController::TestCase
|
|
91
91
|
put :update, :product_id => @product.id, :id => @option.id, :option => {:title => 'My new option'}
|
92
92
|
end
|
93
93
|
|
94
|
-
should assign_to(:option){ @option }
|
94
|
+
should assign_to(:option).with { @option }
|
95
95
|
should redirect_to("option page") { cms_product_option_path(assigns(:option)) }
|
96
96
|
should set_the_flash.to "Successfully updated!"
|
97
97
|
|
@@ -122,7 +122,7 @@ class Cms::OptionsControllerTest < ActionController::TestCase
|
|
122
122
|
delete :destroy, :product_id => @product.id, :id => @option.id
|
123
123
|
end
|
124
124
|
|
125
|
-
should assign_to(:option){ @option }
|
125
|
+
should assign_to(:option).with { @option }
|
126
126
|
should redirect_to("options index"){ cms_product_options_url }
|
127
127
|
should set_the_flash.to "Successfully removed!"
|
128
128
|
end
|
@@ -3,7 +3,7 @@ require 'test_helper'
|
|
3
3
|
class CommentsControllerTest < ActionController::TestCase
|
4
4
|
def setup
|
5
5
|
@post = posts :one
|
6
|
-
@comment =
|
6
|
+
@comment = comments :one
|
7
7
|
end
|
8
8
|
|
9
9
|
context "on GET to :index" do
|
@@ -78,7 +78,7 @@ class CommentsControllerTest < ActionController::TestCase
|
|
78
78
|
get :edit, :id => @comment.id
|
79
79
|
end
|
80
80
|
|
81
|
-
should assign_to(:comment).with
|
81
|
+
should assign_to(:comment).with { @comment }
|
82
82
|
should respond_with :success
|
83
83
|
should render_with_layout :comments
|
84
84
|
should render_template :edit
|
@@ -91,7 +91,7 @@ class CommentsControllerTest < ActionController::TestCase
|
|
91
91
|
put :update, :id => @comment.id, :comment => {:body => 'My new comment'}
|
92
92
|
end
|
93
93
|
|
94
|
-
should assign_to(:comment){ @comment }
|
94
|
+
should assign_to(:comment).with { @comment }
|
95
95
|
should redirect_to("comment page") { comment_path(assigns(:comment)) }
|
96
96
|
should set_the_flash.to "Successfully updated!"
|
97
97
|
|
@@ -122,7 +122,7 @@ class CommentsControllerTest < ActionController::TestCase
|
|
122
122
|
delete :destroy, :id => @comment.id
|
123
123
|
end
|
124
124
|
|
125
|
-
should assign_to(:comment){ @comment }
|
125
|
+
should assign_to(:comment).with { @comment }
|
126
126
|
should redirect_to("comments index"){ comments_path }
|
127
127
|
should set_the_flash.to "Successfully removed!"
|
128
128
|
end
|
@@ -84,7 +84,7 @@ class PeopleControllerTest < ActionController::TestCase
|
|
84
84
|
get :edit, :id => @person.id
|
85
85
|
end
|
86
86
|
|
87
|
-
should assign_to(:person).with
|
87
|
+
should assign_to(:person).with { @person }
|
88
88
|
should respond_with :success
|
89
89
|
should render_with_layout :people
|
90
90
|
should render_template :edit
|
@@ -97,7 +97,7 @@ class PeopleControllerTest < ActionController::TestCase
|
|
97
97
|
put :update, :id => @person.id, :person => {:name => 'Marcel Marceau'}
|
98
98
|
end
|
99
99
|
|
100
|
-
should assign_to(:person){ @person }
|
100
|
+
should assign_to(:person).with { @person }
|
101
101
|
should redirect_to("person page") { person_path(assigns(:person)) }
|
102
102
|
should set_the_flash.to "Successfully updated!"
|
103
103
|
|
@@ -128,7 +128,7 @@ class PeopleControllerTest < ActionController::TestCase
|
|
128
128
|
delete :destroy, :id => @person.id
|
129
129
|
end
|
130
130
|
|
131
|
-
should assign_to(:person){ @person }
|
131
|
+
should assign_to(:person).with { @person }
|
132
132
|
should redirect_to("people index"){ people_path }
|
133
133
|
should set_the_flash.to "Successfully removed!"
|
134
134
|
end
|
@@ -3,7 +3,7 @@ require 'test_helper'
|
|
3
3
|
class PhotosControllerTest < ActionController::TestCase
|
4
4
|
def setup
|
5
5
|
@user = users :one
|
6
|
-
@photo =
|
6
|
+
@photo = photos :one
|
7
7
|
end
|
8
8
|
|
9
9
|
context "actions specified" do
|
@@ -94,7 +94,7 @@ class PhotosControllerTest < ActionController::TestCase
|
|
94
94
|
get :edit, :id => @photo.id
|
95
95
|
end
|
96
96
|
|
97
|
-
should assign_to(:photo).with
|
97
|
+
should assign_to(:photo).with { @photo }
|
98
98
|
should respond_with :success
|
99
99
|
should render_with_layout :photos
|
100
100
|
should render_template :edit
|
@@ -107,7 +107,7 @@ class PhotosControllerTest < ActionController::TestCase
|
|
107
107
|
delete :destroy, :id => @photo.id
|
108
108
|
end
|
109
109
|
|
110
|
-
should assign_to(:photo){ @photo }
|
110
|
+
should assign_to(:photo).with { @photo }
|
111
111
|
should redirect_to("photos index"){ photos_path }
|
112
112
|
should set_the_flash.to "Successfully removed!"
|
113
113
|
end
|
@@ -74,7 +74,7 @@ class ProjectsControllerTest < ActionController::TestCase
|
|
74
74
|
get :edit, :id => @project.id
|
75
75
|
end
|
76
76
|
|
77
|
-
should assign_to(:project).with
|
77
|
+
should assign_to(:project).with { @project }
|
78
78
|
should respond_with :success
|
79
79
|
should render_with_layout :projects
|
80
80
|
should render_template :edit
|
@@ -87,7 +87,7 @@ class ProjectsControllerTest < ActionController::TestCase
|
|
87
87
|
put :update, :id => @project.id, :project => {:title => 'My new project'}
|
88
88
|
end
|
89
89
|
|
90
|
-
should assign_to(:project){ @project }
|
90
|
+
should assign_to(:project).with { @project }
|
91
91
|
should redirect_to("project page") { project_path(assigns(:project)) }
|
92
92
|
should set_the_flash.to "Successfully updated!"
|
93
93
|
|
@@ -118,7 +118,7 @@ class ProjectsControllerTest < ActionController::TestCase
|
|
118
118
|
delete :destroy, :id => @project.id
|
119
119
|
end
|
120
120
|
|
121
|
-
should assign_to(:project){ @project }
|
121
|
+
should assign_to(:project).with { @project }
|
122
122
|
should redirect_to("projects index"){ projects_path }
|
123
123
|
should set_the_flash.to "Successfully removed!"
|
124
124
|
end
|
@@ -74,7 +74,7 @@ class UsersControllerTest < ActionController::TestCase
|
|
74
74
|
get :edit, :id => @dude.id
|
75
75
|
end
|
76
76
|
|
77
|
-
should assign_to(:dude).with
|
77
|
+
should assign_to(:dude).with { @dude }
|
78
78
|
should respond_with :success
|
79
79
|
should render_with_layout :application
|
80
80
|
should render_template :edit
|
@@ -87,7 +87,7 @@ class UsersControllerTest < ActionController::TestCase
|
|
87
87
|
put :update, :id => @dude.id, :dude => {:name => 'My new user'}
|
88
88
|
end
|
89
89
|
|
90
|
-
should assign_to(:dude){ @dude }
|
90
|
+
should assign_to(:dude).with { @dude }
|
91
91
|
should redirect_to("dude page") { dude_path(assigns(:dude)) }
|
92
92
|
should set_the_flash.to "Successfully updated!"
|
93
93
|
|
@@ -118,7 +118,7 @@ class UsersControllerTest < ActionController::TestCase
|
|
118
118
|
delete :destroy, :id => @dude.id
|
119
119
|
end
|
120
120
|
|
121
|
-
should assign_to(:dude){ @dude }
|
121
|
+
should assign_to(:dude).with { @dude }
|
122
122
|
should redirect_to("dudes index"){ dudes_url }
|
123
123
|
should set_the_flash.to "Successfully removed!"
|
124
124
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: makandra_resource_controller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 63
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 8
|
9
|
+
- 0
|
10
|
+
version: 0.8.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- James Golick
|
@@ -19,7 +19,7 @@ autorequire:
|
|
19
19
|
bindir: bin
|
20
20
|
cert_chain: []
|
21
21
|
|
22
|
-
date:
|
22
|
+
date: 2012-06-13 00:00:00 +02:00
|
23
23
|
default_executable:
|
24
24
|
dependencies: []
|
25
25
|
|
@@ -85,6 +85,7 @@ files:
|
|
85
85
|
- lib/urligence.rb
|
86
86
|
- rails/init.rb
|
87
87
|
- test/Gemfile
|
88
|
+
- test/Gemfile.lock
|
88
89
|
- test/Rakefile
|
89
90
|
- test/app/controllers/accounts_controller.rb
|
90
91
|
- test/app/controllers/application_controller.rb
|
@@ -131,67 +132,67 @@ files:
|
|
131
132
|
- test/app/views/accounts/edit.html.erb
|
132
133
|
- test/app/views/accounts/new.html.erb
|
133
134
|
- test/app/views/accounts/show.html.erb
|
134
|
-
- test/app/views/cms/options/edit.
|
135
|
-
- test/app/views/cms/options/index.
|
136
|
-
- test/app/views/cms/options/new.
|
137
|
-
- test/app/views/cms/options/show.
|
138
|
-
- test/app/views/cms/photos/edit.
|
139
|
-
- test/app/views/cms/photos/index.
|
140
|
-
- test/app/views/cms/photos/new.
|
141
|
-
- test/app/views/cms/photos/show.
|
142
|
-
- test/app/views/cms/products/edit.
|
143
|
-
- test/app/views/cms/products/index.
|
144
|
-
- test/app/views/cms/products/new.
|
145
|
-
- test/app/views/cms/products/show.
|
146
|
-
- test/app/views/comments/edit.
|
147
|
-
- test/app/views/comments/index.
|
148
|
-
- test/app/views/comments/new.
|
149
|
-
- test/app/views/comments/show.
|
135
|
+
- test/app/views/cms/options/edit.html.erb
|
136
|
+
- test/app/views/cms/options/index.html.erb
|
137
|
+
- test/app/views/cms/options/new.html.erb
|
138
|
+
- test/app/views/cms/options/show.html.erb
|
139
|
+
- test/app/views/cms/photos/edit.html.erb
|
140
|
+
- test/app/views/cms/photos/index.html.erb
|
141
|
+
- test/app/views/cms/photos/new.html.erb
|
142
|
+
- test/app/views/cms/photos/show.html.erb
|
143
|
+
- test/app/views/cms/products/edit.html.erb
|
144
|
+
- test/app/views/cms/products/index.html.erb
|
145
|
+
- test/app/views/cms/products/new.html.erb
|
146
|
+
- test/app/views/cms/products/show.html.erb
|
147
|
+
- test/app/views/comments/edit.html.erb
|
148
|
+
- test/app/views/comments/index.html.erb
|
149
|
+
- test/app/views/comments/new.html.erb
|
150
|
+
- test/app/views/comments/show.html.erb
|
150
151
|
- test/app/views/images/_form.html.erb
|
151
152
|
- test/app/views/images/edit.html.erb
|
152
153
|
- test/app/views/images/new.html.erb
|
153
|
-
- test/app/views/layouts/application.
|
154
|
-
- test/app/views/layouts/comments.
|
155
|
-
- test/app/views/layouts/options.
|
156
|
-
- test/app/views/layouts/people.
|
157
|
-
- test/app/views/layouts/photos.
|
158
|
-
- test/app/views/layouts/projects.
|
159
|
-
- test/app/views/layouts/somethings.
|
160
|
-
- test/app/views/layouts/tags.
|
154
|
+
- test/app/views/layouts/application.html.erb
|
155
|
+
- test/app/views/layouts/comments.html.erb
|
156
|
+
- test/app/views/layouts/options.html.erb
|
157
|
+
- test/app/views/layouts/people.html.erb
|
158
|
+
- test/app/views/layouts/photos.html.erb
|
159
|
+
- test/app/views/layouts/projects.html.erb
|
160
|
+
- test/app/views/layouts/somethings.html.erb
|
161
|
+
- test/app/views/layouts/tags.html.erb
|
161
162
|
- test/app/views/options/_form.html.erb
|
162
163
|
- test/app/views/options/edit.html.erb
|
163
164
|
- test/app/views/options/index.html.erb
|
164
165
|
- test/app/views/options/new.html.erb
|
165
166
|
- test/app/views/options/show.html.erb
|
166
|
-
- test/app/views/people/edit.
|
167
|
-
- test/app/views/people/index.
|
168
|
-
- test/app/views/people/new.
|
169
|
-
- test/app/views/people/show.
|
170
|
-
- test/app/views/photos/edit.
|
171
|
-
- test/app/views/photos/index.
|
172
|
-
- test/app/views/photos/new.
|
173
|
-
- test/app/views/photos/show.
|
174
|
-
- test/app/views/posts/edit.
|
175
|
-
- test/app/views/posts/index.
|
176
|
-
- test/app/views/posts/new.
|
177
|
-
- test/app/views/posts/show.
|
178
|
-
- test/app/views/projects/edit.
|
179
|
-
- test/app/views/projects/index.
|
180
|
-
- test/app/views/projects/new.
|
181
|
-
- test/app/views/projects/show.
|
182
|
-
- test/app/views/somethings/edit.
|
183
|
-
- test/app/views/somethings/index.
|
184
|
-
- test/app/views/somethings/new.
|
185
|
-
- test/app/views/somethings/show.
|
186
|
-
- test/app/views/tags/edit.
|
187
|
-
- test/app/views/tags/index.
|
167
|
+
- test/app/views/people/edit.html.erb
|
168
|
+
- test/app/views/people/index.html.erb
|
169
|
+
- test/app/views/people/new.html.erb
|
170
|
+
- test/app/views/people/show.html.erb
|
171
|
+
- test/app/views/photos/edit.html.erb
|
172
|
+
- test/app/views/photos/index.html.erb
|
173
|
+
- test/app/views/photos/new.html.erb
|
174
|
+
- test/app/views/photos/show.html.erb
|
175
|
+
- test/app/views/posts/edit.html.erb
|
176
|
+
- test/app/views/posts/index.html.erb
|
177
|
+
- test/app/views/posts/new.html.erb
|
178
|
+
- test/app/views/posts/show.html.erb
|
179
|
+
- test/app/views/projects/edit.html.erb
|
180
|
+
- test/app/views/projects/index.html.erb
|
181
|
+
- test/app/views/projects/new.html.erb
|
182
|
+
- test/app/views/projects/show.html.erb
|
183
|
+
- test/app/views/somethings/edit.html.erb
|
184
|
+
- test/app/views/somethings/index.html.erb
|
185
|
+
- test/app/views/somethings/new.html.erb
|
186
|
+
- test/app/views/somethings/show.html.erb
|
187
|
+
- test/app/views/tags/edit.html.erb
|
188
|
+
- test/app/views/tags/index.html.erb
|
188
189
|
- test/app/views/tags/index.rjs
|
189
|
-
- test/app/views/tags/new.
|
190
|
-
- test/app/views/tags/show.
|
191
|
-
- test/app/views/users/edit.
|
192
|
-
- test/app/views/users/index.
|
193
|
-
- test/app/views/users/new.
|
194
|
-
- test/app/views/users/show.
|
190
|
+
- test/app/views/tags/new.html.erb
|
191
|
+
- test/app/views/tags/show.html.erb
|
192
|
+
- test/app/views/users/edit.html.erb
|
193
|
+
- test/app/views/users/index.html.erb
|
194
|
+
- test/app/views/users/new.html.erb
|
195
|
+
- test/app/views/users/show.html.erb
|
195
196
|
- test/config.ru
|
196
197
|
- test/config/application.rb
|
197
198
|
- test/config/boot.rb
|
@@ -314,7 +315,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
314
315
|
requirements: []
|
315
316
|
|
316
317
|
rubyforge_project:
|
317
|
-
rubygems_version: 1.3.9.
|
318
|
+
rubygems_version: 1.3.9.4
|
318
319
|
signing_key:
|
319
320
|
specification_version: 3
|
320
321
|
summary: Rails RESTful controller abstraction plugin.
|