jquery_dynamic_fields 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -0
- data/jquery_dynamic_fields.gemspec +0 -7
- data/lib/jquery_dynamic_fields/version.rb +1 -1
- metadata +11 -314
- data/.rspec +0 -1
- data/bin/autospec +0 -16
- data/bin/erubis +0 -16
- data/bin/guard +0 -16
- data/bin/htmldiff +0 -16
- data/bin/launchy +0 -16
- data/bin/ldiff +0 -16
- data/bin/nokogiri +0 -16
- data/bin/rackup +0 -16
- data/bin/rails +0 -16
- data/bin/rake +0 -16
- data/bin/rake2thor +0 -16
- data/bin/ri +0 -16
- data/bin/rspec +0 -16
- data/bin/thor +0 -16
- data/bin/tilt +0 -16
- data/bin/tt +0 -16
- data/spec/dummy/.gitignore +0 -15
- data/spec/dummy/Gemfile +0 -46
- data/spec/dummy/README.rdoc +0 -261
- data/spec/dummy/Rakefile +0 -7
- data/spec/dummy/app/assets/images/rails.png +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +0 -16
- data/spec/dummy/app/assets/javascripts/tasklists.js.coffee +0 -3
- data/spec/dummy/app/assets/javascripts/tasks.js.coffee +0 -3
- data/spec/dummy/app/assets/stylesheets/application.css +0 -13
- data/spec/dummy/app/assets/stylesheets/scaffolds.css.scss +0 -56
- data/spec/dummy/app/assets/stylesheets/tasklists.css.scss +0 -3
- data/spec/dummy/app/assets/stylesheets/tasks.css.scss +0 -3
- data/spec/dummy/app/controllers/application_controller.rb +0 -3
- data/spec/dummy/app/controllers/tasklists_controller.rb +0 -83
- data/spec/dummy/app/controllers/tasks_controller.rb +0 -83
- data/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/spec/dummy/app/helpers/tasklists_helper.rb +0 -2
- data/spec/dummy/app/helpers/tasks_helper.rb +0 -2
- data/spec/dummy/app/mailers/.gitkeep +0 -0
- data/spec/dummy/app/models/.gitkeep +0 -0
- data/spec/dummy/app/models/task.rb +0 -4
- data/spec/dummy/app/models/tasklist.rb +0 -5
- data/spec/dummy/app/views/layouts/application.html.erb +0 -14
- data/spec/dummy/app/views/tasklists/_form.html.erb +0 -30
- data/spec/dummy/app/views/tasklists/_task_fields.html.erb +0 -7
- data/spec/dummy/app/views/tasklists/edit.html.erb +0 -6
- data/spec/dummy/app/views/tasklists/index.html.erb +0 -21
- data/spec/dummy/app/views/tasklists/new.html.erb +0 -5
- data/spec/dummy/app/views/tasklists/show.html.erb +0 -5
- data/spec/dummy/bin/autospec +0 -16
- data/spec/dummy/bin/erubis +0 -16
- data/spec/dummy/bin/guard +0 -16
- data/spec/dummy/bin/htmldiff +0 -16
- data/spec/dummy/bin/ldiff +0 -16
- data/spec/dummy/bin/nokogiri +0 -16
- data/spec/dummy/bin/rackup +0 -16
- data/spec/dummy/bin/rails +0 -16
- data/spec/dummy/bin/rake +0 -16
- data/spec/dummy/bin/rake2thor +0 -16
- data/spec/dummy/bin/ri +0 -16
- data/spec/dummy/bin/rspec +0 -16
- data/spec/dummy/bin/sass +0 -16
- data/spec/dummy/bin/sass-convert +0 -16
- data/spec/dummy/bin/scss +0 -16
- data/spec/dummy/bin/thor +0 -16
- data/spec/dummy/bin/tilt +0 -16
- data/spec/dummy/bin/tt +0 -16
- data/spec/dummy/config.ru +0 -4
- data/spec/dummy/config/application.rb +0 -68
- data/spec/dummy/config/boot.rb +0 -6
- data/spec/dummy/config/database.yml +0 -25
- data/spec/dummy/config/environment.rb +0 -5
- data/spec/dummy/config/environments/development.rb +0 -37
- data/spec/dummy/config/environments/production.rb +0 -67
- data/spec/dummy/config/environments/test.rb +0 -37
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy/config/initializers/inflections.rb +0 -15
- data/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/spec/dummy/config/initializers/secret_token.rb +0 -7
- data/spec/dummy/config/initializers/session_store.rb +0 -8
- data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy/config/locales/en.yml +0 -5
- data/spec/dummy/config/routes.rb +0 -59
- data/spec/dummy/db/migrate/20120618180254_create_tasklists.rb +0 -9
- data/spec/dummy/db/migrate/20120618180402_create_tasks.rb +0 -10
- data/spec/dummy/db/schema.rb +0 -29
- data/spec/dummy/db/seeds.rb +0 -7
- data/spec/dummy/lib/assets/.gitkeep +0 -0
- data/spec/dummy/lib/tasks/.gitkeep +0 -0
- data/spec/dummy/log/.gitkeep +0 -0
- data/spec/dummy/public/404.html +0 -26
- data/spec/dummy/public/422.html +0 -26
- data/spec/dummy/public/500.html +0 -25
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/public/index.html +0 -241
- data/spec/dummy/public/robots.txt +0 -5
- data/spec/dummy/script/rails +0 -6
- data/spec/dummy/vendor/assets/javascripts/.gitkeep +0 -0
- data/spec/dummy/vendor/assets/stylesheets/.gitkeep +0 -0
- data/spec/dummy/vendor/plugins/.gitkeep +0 -0
- data/spec/requests/jquery_dynamic_fields_spec.rb +0 -22
- data/spec/spec_helper.rb +0 -44
data/spec/dummy/script/rails
DELETED
@@ -1,6 +0,0 @@
|
|
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'
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,22 +0,0 @@
|
|
1
|
-
require File.expand_path("../../spec_helper", __FILE__)
|
2
|
-
|
3
|
-
describe "JqueryDynamicFields" do
|
4
|
-
describe "adding fields" do
|
5
|
-
it "adds a field", js: true do
|
6
|
-
visit new_tasklist_path
|
7
|
-
click_link "add a task"
|
8
|
-
page.should have_selector "label", text: "Label"
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
describe "removing fields" do
|
13
|
-
it "removes a field", js: true do
|
14
|
-
tasklist = Tasklist.create!(title: "Foo")
|
15
|
-
Task.create!(label: "bar", tasklist_id: tasklist.id)
|
16
|
-
visit edit_tasklist_path(tasklist)
|
17
|
-
page.should have_selector "input", value: "bar"
|
18
|
-
click_link "remove"
|
19
|
-
page.should_not have_content "bar"
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
data/spec/spec_helper.rb
DELETED
@@ -1,44 +0,0 @@
|
|
1
|
-
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
2
|
-
ENV["RAILS_ENV"] ||= 'test'
|
3
|
-
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
4
|
-
require 'rspec/rails'
|
5
|
-
require 'rspec/autorun'
|
6
|
-
require 'capybara/rspec'
|
7
|
-
|
8
|
-
# Requires supporting ruby files with custom matchers and macros, etc,
|
9
|
-
# in spec/support/ and its subdirectories.
|
10
|
-
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
|
11
|
-
|
12
|
-
RSpec.configure do |config|
|
13
|
-
# ## Mock Framework
|
14
|
-
#
|
15
|
-
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
|
16
|
-
#
|
17
|
-
# config.mock_with :mocha
|
18
|
-
# config.mock_with :flexmock
|
19
|
-
# config.mock_with :rr
|
20
|
-
|
21
|
-
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
22
|
-
|
23
|
-
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
24
|
-
# examples within a transaction, remove the following line or assign false
|
25
|
-
# instead of true.
|
26
|
-
config.use_transactional_fixtures = false
|
27
|
-
|
28
|
-
config.before(:suite) do
|
29
|
-
DatabaseCleaner.strategy = :truncation
|
30
|
-
end
|
31
|
-
|
32
|
-
config.before(:each) do
|
33
|
-
DatabaseCleaner.start
|
34
|
-
end
|
35
|
-
|
36
|
-
config.after(:each) do
|
37
|
-
DatabaseCleaner.clean
|
38
|
-
end
|
39
|
-
|
40
|
-
# If true, the base class of anonymous controllers will be inferred
|
41
|
-
# automatically. This will be the default behavior in future versions of
|
42
|
-
# rspec-rails.
|
43
|
-
config.infer_base_class_for_anonymous_controllers = false
|
44
|
-
end
|