nested_form_fields 0.0.9 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. data/.gitignore +5 -1
  2. data/.rspec +2 -0
  3. data/.travis.yml +5 -0
  4. data/README.md +1 -1
  5. data/Rakefile +5 -0
  6. data/lib/nested_form_fields/version.rb +1 -1
  7. data/nested_form_fields.gemspec +12 -0
  8. data/spec/dummy/README.rdoc +261 -0
  9. data/spec/dummy/Rakefile +7 -0
  10. data/spec/dummy/app/assets/javascripts/application.js +16 -0
  11. data/spec/dummy/app/assets/javascripts/users.js.coffee +3 -0
  12. data/spec/dummy/app/assets/stylesheets/application.css.scss +44 -0
  13. data/spec/dummy/app/assets/stylesheets/normalize.css.scss +504 -0
  14. data/spec/dummy/app/assets/stylesheets/users.css.scss +29 -0
  15. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  16. data/spec/dummy/app/controllers/users_controller.rb +37 -0
  17. data/spec/dummy/app/models/project.rb +6 -0
  18. data/spec/dummy/app/models/todo.rb +4 -0
  19. data/spec/dummy/app/models/user.rb +5 -0
  20. data/spec/dummy/app/views/layouts/_messages.html.haml +2 -0
  21. data/spec/dummy/app/views/layouts/_navigation.html.haml +0 -0
  22. data/spec/dummy/app/views/layouts/application.html.haml +21 -0
  23. data/spec/dummy/app/views/users/edit.html.haml +32 -0
  24. data/spec/dummy/app/views/users/show.html.haml +2 -0
  25. data/spec/dummy/config.ru +4 -0
  26. data/spec/dummy/config/application.rb +64 -0
  27. data/spec/dummy/config/boot.rb +10 -0
  28. data/spec/dummy/config/database.yml +25 -0
  29. data/spec/dummy/config/environment.rb +5 -0
  30. data/spec/dummy/config/environments/development.rb +37 -0
  31. data/spec/dummy/config/environments/production.rb +67 -0
  32. data/spec/dummy/config/environments/test.rb +37 -0
  33. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  34. data/spec/dummy/config/initializers/inflections.rb +15 -0
  35. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  36. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  37. data/spec/dummy/config/initializers/session_store.rb +8 -0
  38. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  39. data/spec/dummy/config/locales/en.yml +5 -0
  40. data/spec/dummy/config/routes.rb +5 -0
  41. data/spec/dummy/db/development.sqlite3 +0 -0
  42. data/spec/dummy/db/migrate/20120518212100_create_users.rb +9 -0
  43. data/spec/dummy/db/migrate/20120523095218_create_projects.rb +10 -0
  44. data/spec/dummy/db/migrate/20120523095357_create_todos.rb +10 -0
  45. data/spec/dummy/db/schema.rb +39 -0
  46. data/spec/dummy/db/test.sqlite3 +0 -0
  47. data/spec/dummy/lib/assets/.gitkeep +0 -0
  48. data/spec/dummy/public/404.html +26 -0
  49. data/spec/dummy/public/422.html +26 -0
  50. data/spec/dummy/public/500.html +25 -0
  51. data/spec/dummy/public/favicon.ico +0 -0
  52. data/spec/dummy/script/rails +6 -0
  53. data/spec/integration/nested_form_fields_spec.rb +81 -0
  54. data/spec/spec_helper.rb +43 -0
  55. metadata +212 -4
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ Dummy::Application.config.secret_token = 'bd55d2cde0e6024143ca2d6c5be32f36bb306e35159ff16e9335f44b2f46bd4d64090da62ba19133ee4703b3836b3d6759556cd5a9c9ce2633493f90bccd71b3'
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rails generate session_migration")
8
+ # Dummy::Application.config.session_store :active_record_store
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+ #
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json]
9
+ end
10
+
11
+ # Disable root element in JSON by default.
12
+ ActiveSupport.on_load(:active_record) do
13
+ self.include_root_in_json = false
14
+ end
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,5 @@
1
+ Dummy::Application.routes.draw do
2
+ resources :users
3
+
4
+ root :to => "users#new"
5
+ end
File without changes
@@ -0,0 +1,9 @@
1
+ class CreateUsers < ActiveRecord::Migration
2
+ def change
3
+ create_table :users do |t|
4
+ t.string :name
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,10 @@
1
+ class CreateProjects < ActiveRecord::Migration
2
+ def change
3
+ create_table :projects do |t|
4
+ t.string :name
5
+ t.text :description
6
+ t.belongs_to :user
7
+ end
8
+ add_index :projects, :user_id
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ class CreateTodos < ActiveRecord::Migration
2
+ def change
3
+ create_table :todos do |t|
4
+ t.string :description
5
+ t.belongs_to :model_with_todos, polymorphic: true
6
+ end
7
+ add_index :todos, :model_with_todos_id
8
+ add_index :todos, :model_with_todos_type
9
+ end
10
+ end
@@ -0,0 +1,39 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 20120523095357) do
15
+
16
+ create_table "projects", :force => true do |t|
17
+ t.string "name"
18
+ t.text "description"
19
+ t.integer "user_id"
20
+ end
21
+
22
+ add_index "projects", ["user_id"], :name => "index_projects_on_user_id"
23
+
24
+ create_table "todos", :force => true do |t|
25
+ t.string "description"
26
+ t.integer "model_with_todos_id"
27
+ t.string "model_with_todos_type"
28
+ end
29
+
30
+ add_index "todos", ["model_with_todos_id"], :name => "index_todos_on_model_with_todos_id"
31
+ add_index "todos", ["model_with_todos_type"], :name => "index_todos_on_model_with_todos_type"
32
+
33
+ create_table "users", :force => true do |t|
34
+ t.string "name"
35
+ t.datetime "created_at", :null => false
36
+ t.datetime "updated_at", :null => false
37
+ end
38
+
39
+ end
Binary file
File without changes
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ </div>
24
+ </body>
25
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,81 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'a form with nested projects with nested todos', :js => true do
4
+
5
+ it 'creates a user with nested projects with nested todos' do
6
+ visit '/'
7
+
8
+ fill_in 'user_name', with: 'user name'
9
+
10
+ click_link 'Add Project'
11
+ page.should have_css('fieldset.nested_user_projects')
12
+ fill_in 'user_projects_attributes_0_name', with: 'p1 name'
13
+ fill_in 'user_projects_attributes_0_description', with: 'p1 description'
14
+
15
+ click_link 'Add Todo'
16
+ page.should have_css('fieldset.nested_user_projects_0_todos')
17
+ fill_in 'user_projects_attributes_0_todos_attributes_0_description', with: 'todo text'
18
+
19
+ click_link 'Add Project'
20
+ fill_in 'user_projects_attributes_1_name', with: 'p2 name'
21
+ fill_in 'user_projects_attributes_1_description', with: 'p2 description'
22
+
23
+ assert_difference 'User.count', +1 do
24
+ click_on 'Create User'
25
+ end
26
+
27
+ user = User.last
28
+ projects = user.projects
29
+ todos = projects.first.todos
30
+ projects.count.should == 2
31
+ todos.count.should == 1
32
+ user.name.should == 'user name'
33
+ projects[0].name.should == 'p1 name'
34
+ projects[0].description.should == 'p1 description'
35
+ projects[1].name.should == 'p2 name'
36
+ projects[1].description.should == 'p2 description'
37
+ todos[0].description.should == 'todo text'
38
+ end
39
+
40
+ let(:user) do
41
+ user = User.create(name: 'user name')
42
+ user.projects.create(name: 'p1 name', description: 'p1 description')
43
+ user.projects.create(name: 'p2 name', description: 'p2 description')
44
+ user.projects.first.todos.create(description: 'todo text')
45
+ user
46
+ end
47
+
48
+ it 'edits a user with nested projects with nested todos' do
49
+ Capybara.ignore_hidden_elements = true
50
+
51
+ visit edit_user_path(user)
52
+
53
+ page.should have_css('fieldset.nested_user_projects_0_todos')
54
+ page.find('.nested_user_projects_0_todos .remove_nested_fields_link').click
55
+ page.should_not have_css('fieldset.nested_user_projects_0_todos')
56
+
57
+ page.all('.nested_user_projects .remove_nested_fields_link').count.should == 2
58
+ page.all('.nested_user_projects .remove_nested_fields_link').last.click
59
+ page.all('.nested_user_projects .remove_nested_fields_link').count.should == 1
60
+
61
+ fill_in 'user_projects_attributes_0_name', with: 'new name'
62
+
63
+ click_link 'Add Todo'
64
+ page.should have_css('fieldset.nested_user_projects_0_todos')
65
+
66
+ fill_in 'user_projects_attributes_0_todos_attributes_1_description', with: 'new text'
67
+
68
+ click_on 'Update User'
69
+
70
+ projects = user.projects
71
+ todos = projects.first.todos
72
+ projects.count.should == 1
73
+ todos.count.should == 1
74
+ projects[0].name.should == 'new name'
75
+ todos[0].description.should == 'new text'
76
+
77
+ Capybara.ignore_hidden_elements = false
78
+ end
79
+
80
+
81
+ end
@@ -0,0 +1,43 @@
1
+ # This file was generated by the `rspec --init` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # Require this file using `require "spec_helper.rb"` to ensure that it is only
4
+ # loaded once.
5
+ #
6
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
7
+
8
+ ENV["RAILS_ENV"] = 'test'
9
+ require_relative "dummy/config/environment"
10
+
11
+ require 'rspec/rails'
12
+ require 'assert_difference'
13
+ require 'sqlite3'
14
+
15
+ require 'haml'
16
+
17
+ # Add this to load Capybara integration:
18
+ require 'capybara/rspec'
19
+ require 'capybara/rails'
20
+
21
+ Capybara.default_selector = :css
22
+
23
+ RSpec.configure do |config|
24
+ config.treat_symbols_as_metadata_keys_with_true_values = true
25
+ config.run_all_when_everything_filtered = true
26
+ config.include AssertDifference
27
+ config.use_transactional_fixtures = true
28
+ end
29
+
30
+
31
+ class ActiveRecord::Base
32
+ mattr_accessor :shared_connection
33
+ @@shared_connection = nil
34
+
35
+ def self.connection
36
+ @@shared_connection || retrieve_connection
37
+ end
38
+ end
39
+
40
+ # Forces all threads to share the same connection. This works on
41
+ # Capybara because it starts the web server in a thread.
42
+ ActiveRecord::Base.shared_connection = ActiveRecord::Base.connection
43
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nested_form_fields
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,8 +9,118 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-24 00:00:00.000000000Z
13
- dependencies: []
12
+ date: 2012-05-27 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: &2239914120 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 3.1.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *2239914120
25
+ - !ruby/object:Gem::Dependency
26
+ name: jquery-rails
27
+ requirement: &2239870700 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *2239870700
36
+ - !ruby/object:Gem::Dependency
37
+ name: rspec-rails
38
+ requirement: &2239850320 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *2239850320
47
+ - !ruby/object:Gem::Dependency
48
+ name: assert_difference
49
+ requirement: &2239828780 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: *2239828780
58
+ - !ruby/object:Gem::Dependency
59
+ name: capybara
60
+ requirement: &2239825380 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ type: :development
67
+ prerelease: false
68
+ version_requirements: *2239825380
69
+ - !ruby/object:Gem::Dependency
70
+ name: selenium-webdriver
71
+ requirement: &2239821780 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: *2239821780
80
+ - !ruby/object:Gem::Dependency
81
+ name: sqlite3
82
+ requirement: &2239789280 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: *2239789280
91
+ - !ruby/object:Gem::Dependency
92
+ name: haml
93
+ requirement: &2239764960 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: 3.1.5
99
+ type: :development
100
+ prerelease: false
101
+ version_requirements: *2239764960
102
+ - !ruby/object:Gem::Dependency
103
+ name: sass-rails
104
+ requirement: &2239714640 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: 3.2.3
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: *2239714640
113
+ - !ruby/object:Gem::Dependency
114
+ name: coffee-rails
115
+ requirement: &2239664160 !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - ~>
119
+ - !ruby/object:Gem::Version
120
+ version: 3.2.1
121
+ type: :development
122
+ prerelease: false
123
+ version_requirements: *2239664160
14
124
  description: ! "Rails gem for dynamically adding and removing nested has_many association
15
125
  fields in a form.\n Uses jQuery and supports multiple nesting
16
126
  levels. Requires Ruby 1.9 and the asset pipeline."
@@ -21,6 +131,8 @@ extensions: []
21
131
  extra_rdoc_files: []
22
132
  files:
23
133
  - .gitignore
134
+ - .rspec
135
+ - .travis.yml
24
136
  - Gemfile
25
137
  - LICENSE
26
138
  - README.md
@@ -28,6 +140,54 @@ files:
28
140
  - lib/nested_form_fields.rb
29
141
  - lib/nested_form_fields/version.rb
30
142
  - nested_form_fields.gemspec
143
+ - spec/dummy/README.rdoc
144
+ - spec/dummy/Rakefile
145
+ - spec/dummy/app/assets/javascripts/application.js
146
+ - spec/dummy/app/assets/javascripts/users.js.coffee
147
+ - spec/dummy/app/assets/stylesheets/application.css.scss
148
+ - spec/dummy/app/assets/stylesheets/normalize.css.scss
149
+ - spec/dummy/app/assets/stylesheets/users.css.scss
150
+ - spec/dummy/app/controllers/application_controller.rb
151
+ - spec/dummy/app/controllers/users_controller.rb
152
+ - spec/dummy/app/models/project.rb
153
+ - spec/dummy/app/models/todo.rb
154
+ - spec/dummy/app/models/user.rb
155
+ - spec/dummy/app/views/layouts/_messages.html.haml
156
+ - spec/dummy/app/views/layouts/_navigation.html.haml
157
+ - spec/dummy/app/views/layouts/application.html.haml
158
+ - spec/dummy/app/views/users/edit.html.haml
159
+ - spec/dummy/app/views/users/show.html.haml
160
+ - spec/dummy/config.ru
161
+ - spec/dummy/config/application.rb
162
+ - spec/dummy/config/boot.rb
163
+ - spec/dummy/config/database.yml
164
+ - spec/dummy/config/environment.rb
165
+ - spec/dummy/config/environments/development.rb
166
+ - spec/dummy/config/environments/production.rb
167
+ - spec/dummy/config/environments/test.rb
168
+ - spec/dummy/config/initializers/backtrace_silencers.rb
169
+ - spec/dummy/config/initializers/inflections.rb
170
+ - spec/dummy/config/initializers/mime_types.rb
171
+ - spec/dummy/config/initializers/secret_token.rb
172
+ - spec/dummy/config/initializers/session_store.rb
173
+ - spec/dummy/config/initializers/wrap_parameters.rb
174
+ - spec/dummy/config/locales/en.yml
175
+ - spec/dummy/config/routes.rb
176
+ - spec/dummy/db/development.sqlite3
177
+ - spec/dummy/db/migrate/20120518212100_create_users.rb
178
+ - spec/dummy/db/migrate/20120523095218_create_projects.rb
179
+ - spec/dummy/db/migrate/20120523095357_create_todos.rb
180
+ - spec/dummy/db/schema.rb
181
+ - spec/dummy/db/test.sqlite3
182
+ - spec/dummy/lib/assets/.gitkeep
183
+ - spec/dummy/log/.gitkeep
184
+ - spec/dummy/public/404.html
185
+ - spec/dummy/public/422.html
186
+ - spec/dummy/public/500.html
187
+ - spec/dummy/public/favicon.ico
188
+ - spec/dummy/script/rails
189
+ - spec/integration/nested_form_fields_spec.rb
190
+ - spec/spec_helper.rb
31
191
  - vendor/assets/javascripts/nested_form_fields.js.coffee
32
192
  homepage: ''
33
193
  licenses: []
@@ -54,5 +214,53 @@ signing_key:
54
214
  specification_version: 3
55
215
  summary: Rails gem for dynamically adding and removing nested has_many association
56
216
  fields in a form.
57
- test_files: []
217
+ test_files:
218
+ - spec/dummy/README.rdoc
219
+ - spec/dummy/Rakefile
220
+ - spec/dummy/app/assets/javascripts/application.js
221
+ - spec/dummy/app/assets/javascripts/users.js.coffee
222
+ - spec/dummy/app/assets/stylesheets/application.css.scss
223
+ - spec/dummy/app/assets/stylesheets/normalize.css.scss
224
+ - spec/dummy/app/assets/stylesheets/users.css.scss
225
+ - spec/dummy/app/controllers/application_controller.rb
226
+ - spec/dummy/app/controllers/users_controller.rb
227
+ - spec/dummy/app/models/project.rb
228
+ - spec/dummy/app/models/todo.rb
229
+ - spec/dummy/app/models/user.rb
230
+ - spec/dummy/app/views/layouts/_messages.html.haml
231
+ - spec/dummy/app/views/layouts/_navigation.html.haml
232
+ - spec/dummy/app/views/layouts/application.html.haml
233
+ - spec/dummy/app/views/users/edit.html.haml
234
+ - spec/dummy/app/views/users/show.html.haml
235
+ - spec/dummy/config.ru
236
+ - spec/dummy/config/application.rb
237
+ - spec/dummy/config/boot.rb
238
+ - spec/dummy/config/database.yml
239
+ - spec/dummy/config/environment.rb
240
+ - spec/dummy/config/environments/development.rb
241
+ - spec/dummy/config/environments/production.rb
242
+ - spec/dummy/config/environments/test.rb
243
+ - spec/dummy/config/initializers/backtrace_silencers.rb
244
+ - spec/dummy/config/initializers/inflections.rb
245
+ - spec/dummy/config/initializers/mime_types.rb
246
+ - spec/dummy/config/initializers/secret_token.rb
247
+ - spec/dummy/config/initializers/session_store.rb
248
+ - spec/dummy/config/initializers/wrap_parameters.rb
249
+ - spec/dummy/config/locales/en.yml
250
+ - spec/dummy/config/routes.rb
251
+ - spec/dummy/db/development.sqlite3
252
+ - spec/dummy/db/migrate/20120518212100_create_users.rb
253
+ - spec/dummy/db/migrate/20120523095218_create_projects.rb
254
+ - spec/dummy/db/migrate/20120523095357_create_todos.rb
255
+ - spec/dummy/db/schema.rb
256
+ - spec/dummy/db/test.sqlite3
257
+ - spec/dummy/lib/assets/.gitkeep
258
+ - spec/dummy/log/.gitkeep
259
+ - spec/dummy/public/404.html
260
+ - spec/dummy/public/422.html
261
+ - spec/dummy/public/500.html
262
+ - spec/dummy/public/favicon.ico
263
+ - spec/dummy/script/rails
264
+ - spec/integration/nested_form_fields_spec.rb
265
+ - spec/spec_helper.rb
58
266
  has_rdoc: