rails3-jquery-autocomplete 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/{CHANGELOG.md → CHANGELOG.MD} +1 -0
- data/README.markdown +4 -1
- data/lib/generators/templates/autocomplete-rails-uncompressed.js +1 -1
- data/lib/generators/templates/autocomplete-rails.js +1 -1
- data/lib/rails3-jquery-autocomplete.rb +1 -1
- data/lib/rails3-jquery-autocomplete/form_helper.rb +1 -0
- data/lib/rails3-jquery-autocomplete/formtastic_plugin.rb +3 -4
- data/lib/rails3-jquery-autocomplete/version.rb +1 -1
- metadata +10 -104
- data/.document +0 -5
- data/.gitignore +0 -26
- data/Gemfile +0 -18
- data/integration/.gitignore +0 -2
- data/integration/.rspec +0 -1
- data/integration/Gemfile +0 -18
- data/integration/README +0 -256
- data/integration/Rakefile +0 -7
- data/integration/app/controllers/application_controller.rb +0 -3
- data/integration/app/controllers/autocomplete_controller.rb +0 -7
- data/integration/app/controllers/id_elements_controller.rb +0 -8
- data/integration/app/controllers/multiple_selections_controller.rb +0 -7
- data/integration/app/controllers/nested_models_controller.rb +0 -8
- data/integration/app/controllers/scoped_autocompletes_controller.rb +0 -7
- data/integration/app/controllers/simple_forms_controller.rb +0 -7
- data/integration/app/controllers/sub_classes_controller.rb +0 -7
- data/integration/app/helpers/application_helper.rb +0 -2
- data/integration/app/helpers/autocomplete_helper.rb +0 -2
- data/integration/app/helpers/error_messages_helper.rb +0 -23
- data/integration/app/helpers/id_elements_helper.rb +0 -2
- data/integration/app/helpers/layout_helper.rb +0 -22
- data/integration/app/helpers/sub_classes_helper.rb +0 -2
- data/integration/app/models/address.rb +0 -2
- data/integration/app/models/brand.rb +0 -18
- data/integration/app/models/feature.rb +0 -13
- data/integration/app/models/foreign_brand.rb +0 -15
- data/integration/app/models/product.rb +0 -17
- data/integration/app/views/autocomplete/new.html.haml +0 -10
- data/integration/app/views/id_elements/new.html.haml +0 -12
- data/integration/app/views/layouts/application.html.haml +0 -21
- data/integration/app/views/multiple_selections/new.html.haml +0 -9
- data/integration/app/views/nested_models/new.html.haml +0 -11
- data/integration/app/views/scoped_autocompletes/new.html.haml +0 -10
- data/integration/app/views/simple_forms/new.html.haml +0 -8
- data/integration/app/views/sub_classes/new.html.haml +0 -9
- data/integration/autotest/discover.rb +0 -2
- data/integration/config.ru +0 -4
- data/integration/config/application.rb +0 -42
- data/integration/config/boot.rb +0 -13
- data/integration/config/cucumber.yml +0 -8
- data/integration/config/database.yml +0 -25
- data/integration/config/environment.rb +0 -5
- data/integration/config/environments/development.rb +0 -26
- data/integration/config/environments/production.rb +0 -49
- data/integration/config/environments/test.rb +0 -35
- data/integration/config/initializers/backtrace_silencers.rb +0 -7
- data/integration/config/initializers/inflections.rb +0 -10
- data/integration/config/initializers/mime_types.rb +0 -5
- data/integration/config/initializers/secret_token.rb +0 -7
- data/integration/config/initializers/session_store.rb +0 -8
- data/integration/config/locales/en.yml +0 -5
- data/integration/config/routes.rb +0 -90
- data/integration/db/migrate/20101209014338_create_brands.rb +0 -13
- data/integration/db/migrate/20101209014355_create_products.rb +0 -14
- data/integration/db/migrate/20101209053936_add_type_to_brand.rb +0 -9
- data/integration/db/migrate/20110209020136_create_features.rb +0 -14
- data/integration/db/migrate/20110423000347_add_state_to_brands.rb +0 -9
- data/integration/db/migrate/20110512153732_create_addresses.rb +0 -13
- data/integration/db/migrate/20110512153811_add_address_id_to_brand.rb +0 -9
- data/integration/db/schema.rb +0 -44
- data/integration/db/seeds.rb +0 -3
- data/integration/doc/README_FOR_APP +0 -2
- data/integration/features/autocomplete.feature +0 -73
- data/integration/features/step_definitions/autocomplete_steps.rb +0 -15
- data/integration/features/step_definitions/pickle_steps.rb +0 -100
- data/integration/features/step_definitions/web_steps.rb +0 -219
- data/integration/features/support/env.rb +0 -61
- data/integration/features/support/paths.rb +0 -33
- data/integration/features/support/pickle.rb +0 -24
- data/integration/lib/tasks/cucumber.rake +0 -53
- data/integration/public/404.html +0 -26
- data/integration/public/422.html +0 -26
- data/integration/public/500.html +0 -26
- data/integration/public/favicon.ico +0 -0
- data/integration/public/images/rails.png +0 -0
- data/integration/public/javascripts/application.js +0 -0
- data/integration/public/javascripts/autocomplete-rails.js +0 -16
- data/integration/public/javascripts/jquery-1.5.1.min.js +0 -17
- data/integration/public/javascripts/jquery-ui.min.js +0 -97
- data/integration/public/javascripts/jquery.min.js +0 -167
- data/integration/public/javascripts/rails.js +0 -137
- data/integration/public/robots.txt +0 -5
- data/integration/public/stylesheets/application.css +0 -61
- data/integration/public/stylesheets/jquery-ui-1.8.2.custom.css +0 -489
- data/integration/public/stylesheets/sass/application.sass +0 -66
- data/integration/script/cucumber +0 -10
- data/integration/script/rails +0 -6
- data/integration/spec/acceptance/acceptance_helper.rb +0 -15
- data/integration/spec/acceptance/autocomplete_spec.rb +0 -81
- data/integration/spec/acceptance/support/helpers.rb +0 -12
- data/integration/spec/acceptance/support/paths.rb +0 -33
- data/integration/spec/spec_helper.rb +0 -37
- data/rails3-jquery-autocomplete.gemspec +0 -31
@@ -1,49 +0,0 @@
|
|
1
|
-
Integration::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/application.rb
|
3
|
-
|
4
|
-
# The production environment is meant for finished, "live" apps.
|
5
|
-
# Code is not reloaded between requests
|
6
|
-
config.cache_classes = true
|
7
|
-
|
8
|
-
# Full error reports are disabled and caching is turned on
|
9
|
-
config.consider_all_requests_local = false
|
10
|
-
config.action_controller.perform_caching = true
|
11
|
-
|
12
|
-
# Specifies the header that your server uses for sending files
|
13
|
-
config.action_dispatch.x_sendfile_header = "X-Sendfile"
|
14
|
-
|
15
|
-
# For nginx:
|
16
|
-
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
|
17
|
-
|
18
|
-
# If you have no front-end server that supports something like X-Sendfile,
|
19
|
-
# just comment this out and Rails will serve the files
|
20
|
-
|
21
|
-
# See everything in the log (default is :info)
|
22
|
-
# config.log_level = :debug
|
23
|
-
|
24
|
-
# Use a different logger for distributed setups
|
25
|
-
# config.logger = SyslogLogger.new
|
26
|
-
|
27
|
-
# Use a different cache store in production
|
28
|
-
# config.cache_store = :mem_cache_store
|
29
|
-
|
30
|
-
# Disable Rails's static asset server
|
31
|
-
# In production, Apache or nginx will already do this
|
32
|
-
config.serve_static_assets = false
|
33
|
-
|
34
|
-
# Enable serving of images, stylesheets, and javascripts from an asset server
|
35
|
-
# config.action_controller.asset_host = "http://assets.example.com"
|
36
|
-
|
37
|
-
# Disable delivery errors, bad email addresses will be ignored
|
38
|
-
# config.action_mailer.raise_delivery_errors = false
|
39
|
-
|
40
|
-
# Enable threaded mode
|
41
|
-
# config.threadsafe!
|
42
|
-
|
43
|
-
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
44
|
-
# the I18n.default_locale when a translation can not be found)
|
45
|
-
config.i18n.fallbacks = true
|
46
|
-
|
47
|
-
# Send deprecation notices to registered listeners
|
48
|
-
config.active_support.deprecation = :notify
|
49
|
-
end
|
@@ -1,35 +0,0 @@
|
|
1
|
-
Integration::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/application.rb
|
3
|
-
|
4
|
-
# The test environment is used exclusively to run your application's
|
5
|
-
# test suite. You never need to work with it otherwise. Remember that
|
6
|
-
# your test database is "scratch space" for the test suite and is wiped
|
7
|
-
# and recreated between test runs. Don't rely on the data there!
|
8
|
-
config.cache_classes = true
|
9
|
-
|
10
|
-
# Log error messages when you accidentally call methods on nil.
|
11
|
-
config.whiny_nils = true
|
12
|
-
|
13
|
-
# Show full error reports and disable caching
|
14
|
-
config.consider_all_requests_local = true
|
15
|
-
config.action_controller.perform_caching = false
|
16
|
-
|
17
|
-
# Raise exceptions instead of rendering exception templates
|
18
|
-
config.action_dispatch.show_exceptions = false
|
19
|
-
|
20
|
-
# Disable request forgery protection in test environment
|
21
|
-
config.action_controller.allow_forgery_protection = false
|
22
|
-
|
23
|
-
# Tell Action Mailer not to deliver emails to the real world.
|
24
|
-
# The :test delivery method accumulates sent emails in the
|
25
|
-
# ActionMailer::Base.deliveries array.
|
26
|
-
config.action_mailer.delivery_method = :test
|
27
|
-
|
28
|
-
# Use SQL instead of Active Record's schema dumper when creating the test database.
|
29
|
-
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
30
|
-
# like if you have constraints or database-specific column types
|
31
|
-
# config.active_record.schema_format = :sql
|
32
|
-
|
33
|
-
# Print deprecation notices to the stderr
|
34
|
-
config.active_support.deprecation = :stderr
|
35
|
-
end
|
@@ -1,7 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
-
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
-
|
6
|
-
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
-
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -1,10 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# Add new inflection rules using the following format
|
4
|
-
# (all these examples are active by default):
|
5
|
-
# ActiveSupport::Inflector.inflections do |inflect|
|
6
|
-
# inflect.plural /^(ox)$/i, '\1en'
|
7
|
-
# inflect.singular /^(ox)en/i, '\1'
|
8
|
-
# inflect.irregular 'person', 'people'
|
9
|
-
# inflect.uncountable %w( fish sheep )
|
10
|
-
# end
|
@@ -1,7 +0,0 @@
|
|
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
|
-
Integration::Application.config.secret_token = '6cfc71a180f0482c7f2896f0ce99929ad1c6343a6eb73db8e09f7bae0d93edbcabaf06def9d1e5ce7dabf2dd3a410f878272d2120660f2e49ed0ef431d7cad30'
|
@@ -1,8 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
Integration::Application.config.session_store :cookie_store, :key => '_integration_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
|
-
# Integration::Application.config.session_store :active_record_store
|
@@ -1,90 +0,0 @@
|
|
1
|
-
Integration::Application.routes.draw do
|
2
|
-
|
3
|
-
root :to => 'autocomplete#new'
|
4
|
-
match 'autocomplete/autocomplete_brand_name' => 'autocomplete#autocomplete_brand_name'
|
5
|
-
|
6
|
-
resources :products
|
7
|
-
resources :id_elements do
|
8
|
-
get :autocomplete_brand_name, :on => :collection
|
9
|
-
end
|
10
|
-
|
11
|
-
resources :sub_classes do
|
12
|
-
get :autocomplete_foreign_brand_name, :on => :collection
|
13
|
-
end
|
14
|
-
|
15
|
-
resources :multiple_selections do
|
16
|
-
get :autocomplete_brand_name, :on => :collection
|
17
|
-
end
|
18
|
-
|
19
|
-
resources :nested_models do
|
20
|
-
get :autocomplete_feature_name, :on => :collection
|
21
|
-
end
|
22
|
-
|
23
|
-
resources :simple_forms do
|
24
|
-
get :autocomplete_feature_name, :on => :collection
|
25
|
-
end
|
26
|
-
|
27
|
-
resources :scoped_autocompletes do
|
28
|
-
get :autocomplete_brand_name, :on => :collection
|
29
|
-
end
|
30
|
-
end
|
31
|
-
#== Route Map
|
32
|
-
# Generated on 25 Apr 2011 09:55
|
33
|
-
#
|
34
|
-
# root /(.:format) {:controller=>"autocomplete", :action=>"new"}
|
35
|
-
# autocomplete_autocomplete_brand_name /autocomplete/autocomplete_brand_name(.:format) {:controller=>"autocomplete", :action=>"autocomplete_brand_name"}
|
36
|
-
# products GET /products(.:format) {:controller=>"products", :action=>"index"}
|
37
|
-
# POST /products(.:format) {:controller=>"products", :action=>"create"}
|
38
|
-
# new_product GET /products/new(.:format) {:controller=>"products", :action=>"new"}
|
39
|
-
# edit_product GET /products/:id/edit(.:format) {:controller=>"products", :action=>"edit"}
|
40
|
-
# product GET /products/:id(.:format) {:controller=>"products", :action=>"show"}
|
41
|
-
# PUT /products/:id(.:format) {:controller=>"products", :action=>"update"}
|
42
|
-
# DELETE /products/:id(.:format) {:controller=>"products", :action=>"destroy"}
|
43
|
-
# autocomplete_brand_name_id_elements GET /id_elements/autocomplete_brand_name(.:format) {:controller=>"id_elements", :action=>"autocomplete_brand_name"}
|
44
|
-
# id_elements GET /id_elements(.:format) {:controller=>"id_elements", :action=>"index"}
|
45
|
-
# POST /id_elements(.:format) {:controller=>"id_elements", :action=>"create"}
|
46
|
-
# new_id_element GET /id_elements/new(.:format) {:controller=>"id_elements", :action=>"new"}
|
47
|
-
# edit_id_element GET /id_elements/:id/edit(.:format) {:controller=>"id_elements", :action=>"edit"}
|
48
|
-
# id_element GET /id_elements/:id(.:format) {:controller=>"id_elements", :action=>"show"}
|
49
|
-
# PUT /id_elements/:id(.:format) {:controller=>"id_elements", :action=>"update"}
|
50
|
-
# DELETE /id_elements/:id(.:format) {:controller=>"id_elements", :action=>"destroy"}
|
51
|
-
# autocomplete_foreign_brand_name_sub_classes GET /sub_classes/autocomplete_foreign_brand_name(.:format) {:controller=>"sub_classes", :action=>"autocomplete_foreign_brand_name"}
|
52
|
-
# sub_classes GET /sub_classes(.:format) {:controller=>"sub_classes", :action=>"index"}
|
53
|
-
# POST /sub_classes(.:format) {:controller=>"sub_classes", :action=>"create"}
|
54
|
-
# new_sub_class GET /sub_classes/new(.:format) {:controller=>"sub_classes", :action=>"new"}
|
55
|
-
# edit_sub_class GET /sub_classes/:id/edit(.:format) {:controller=>"sub_classes", :action=>"edit"}
|
56
|
-
# sub_class GET /sub_classes/:id(.:format) {:controller=>"sub_classes", :action=>"show"}
|
57
|
-
# PUT /sub_classes/:id(.:format) {:controller=>"sub_classes", :action=>"update"}
|
58
|
-
# DELETE /sub_classes/:id(.:format) {:controller=>"sub_classes", :action=>"destroy"}
|
59
|
-
# autocomplete_brand_name_multiple_selections GET /multiple_selections/autocomplete_brand_name(.:format) {:controller=>"multiple_selections", :action=>"autocomplete_brand_name"}
|
60
|
-
# multiple_selections GET /multiple_selections(.:format) {:controller=>"multiple_selections", :action=>"index"}
|
61
|
-
# POST /multiple_selections(.:format) {:controller=>"multiple_selections", :action=>"create"}
|
62
|
-
# new_multiple_selection GET /multiple_selections/new(.:format) {:controller=>"multiple_selections", :action=>"new"}
|
63
|
-
# edit_multiple_selection GET /multiple_selections/:id/edit(.:format) {:controller=>"multiple_selections", :action=>"edit"}
|
64
|
-
# multiple_selection GET /multiple_selections/:id(.:format) {:controller=>"multiple_selections", :action=>"show"}
|
65
|
-
# PUT /multiple_selections/:id(.:format) {:controller=>"multiple_selections", :action=>"update"}
|
66
|
-
# DELETE /multiple_selections/:id(.:format) {:controller=>"multiple_selections", :action=>"destroy"}
|
67
|
-
# autocomplete_feature_name_nested_models GET /nested_models/autocomplete_feature_name(.:format) {:controller=>"nested_models", :action=>"autocomplete_feature_name"}
|
68
|
-
# nested_models GET /nested_models(.:format) {:controller=>"nested_models", :action=>"index"}
|
69
|
-
# POST /nested_models(.:format) {:controller=>"nested_models", :action=>"create"}
|
70
|
-
# new_nested_model GET /nested_models/new(.:format) {:controller=>"nested_models", :action=>"new"}
|
71
|
-
# edit_nested_model GET /nested_models/:id/edit(.:format) {:controller=>"nested_models", :action=>"edit"}
|
72
|
-
# nested_model GET /nested_models/:id(.:format) {:controller=>"nested_models", :action=>"show"}
|
73
|
-
# PUT /nested_models/:id(.:format) {:controller=>"nested_models", :action=>"update"}
|
74
|
-
# DELETE /nested_models/:id(.:format) {:controller=>"nested_models", :action=>"destroy"}
|
75
|
-
# autocomplete_feature_name_simple_forms GET /simple_forms/autocomplete_feature_name(.:format) {:controller=>"simple_forms", :action=>"autocomplete_feature_name"}
|
76
|
-
# simple_forms GET /simple_forms(.:format) {:controller=>"simple_forms", :action=>"index"}
|
77
|
-
# POST /simple_forms(.:format) {:controller=>"simple_forms", :action=>"create"}
|
78
|
-
# new_simple_form GET /simple_forms/new(.:format) {:controller=>"simple_forms", :action=>"new"}
|
79
|
-
# edit_simple_form GET /simple_forms/:id/edit(.:format) {:controller=>"simple_forms", :action=>"edit"}
|
80
|
-
# simple_form GET /simple_forms/:id(.:format) {:controller=>"simple_forms", :action=>"show"}
|
81
|
-
# PUT /simple_forms/:id(.:format) {:controller=>"simple_forms", :action=>"update"}
|
82
|
-
# DELETE /simple_forms/:id(.:format) {:controller=>"simple_forms", :action=>"destroy"}
|
83
|
-
# autocomplete_brand_name_scoped_autocompletes GET /scoped_autocompletes/autocomplete_brand_name(.:format) {:controller=>"scoped_autocompletes", :action=>"autocomplete_brand_name"}
|
84
|
-
# scoped_autocompletes GET /scoped_autocompletes(.:format) {:controller=>"scoped_autocompletes", :action=>"index"}
|
85
|
-
# POST /scoped_autocompletes(.:format) {:controller=>"scoped_autocompletes", :action=>"create"}
|
86
|
-
# new_scoped_autocomplete GET /scoped_autocompletes/new(.:format) {:controller=>"scoped_autocompletes", :action=>"new"}
|
87
|
-
# edit_scoped_autocomplete GET /scoped_autocompletes/:id/edit(.:format) {:controller=>"scoped_autocompletes", :action=>"edit"}
|
88
|
-
# scoped_autocomplete GET /scoped_autocompletes/:id(.:format) {:controller=>"scoped_autocompletes", :action=>"show"}
|
89
|
-
# PUT /scoped_autocompletes/:id(.:format) {:controller=>"scoped_autocompletes", :action=>"update"}
|
90
|
-
# DELETE /scoped_autocompletes/:id(.:format) {:controller=>"scoped_autocompletes", :action=>"destroy"}
|
data/integration/db/schema.rb
DELETED
@@ -1,44 +0,0 @@
|
|
1
|
-
# This file is auto-generated from the current state of the database. Instead
|
2
|
-
# of editing this file, please use the migrations feature of Active Record to
|
3
|
-
# incrementally modify your database, and then regenerate this schema definition.
|
4
|
-
#
|
5
|
-
# Note that this schema.rb definition is the authoritative source for your
|
6
|
-
# database schema. If you need to create the application database on another
|
7
|
-
# system, you should be using db:schema:load, not running all the migrations
|
8
|
-
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
9
|
-
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
10
|
-
#
|
11
|
-
# It's strongly recommended to check this file into your version control system.
|
12
|
-
|
13
|
-
ActiveRecord::Schema.define(:version => 20110512153811) do
|
14
|
-
|
15
|
-
create_table "addresses", :force => true do |t|
|
16
|
-
t.string "street"
|
17
|
-
t.datetime "created_at"
|
18
|
-
t.datetime "updated_at"
|
19
|
-
end
|
20
|
-
|
21
|
-
create_table "brands", :force => true do |t|
|
22
|
-
t.string "name"
|
23
|
-
t.datetime "created_at"
|
24
|
-
t.datetime "updated_at"
|
25
|
-
t.string "type"
|
26
|
-
t.boolean "state"
|
27
|
-
t.integer "address_id"
|
28
|
-
end
|
29
|
-
|
30
|
-
create_table "features", :force => true do |t|
|
31
|
-
t.string "name"
|
32
|
-
t.integer "product_id"
|
33
|
-
t.datetime "created_at"
|
34
|
-
t.datetime "updated_at"
|
35
|
-
end
|
36
|
-
|
37
|
-
create_table "products", :force => true do |t|
|
38
|
-
t.string "name"
|
39
|
-
t.string "brand_name"
|
40
|
-
t.datetime "created_at"
|
41
|
-
t.datetime "updated_at"
|
42
|
-
end
|
43
|
-
|
44
|
-
end
|
data/integration/db/seeds.rb
DELETED
@@ -1,73 +0,0 @@
|
|
1
|
-
Feature: Autocomplete
|
2
|
-
In order to do funky stuff
|
3
|
-
As a User
|
4
|
-
I want autocomplete!
|
5
|
-
|
6
|
-
Background:
|
7
|
-
Given the following brands exists:
|
8
|
-
| name | state |
|
9
|
-
| Alpha | true |
|
10
|
-
| Beta | false |
|
11
|
-
| Gamma | false |
|
12
|
-
| Kappa | true |
|
13
|
-
| Kappler | false |
|
14
|
-
And the following features exists:
|
15
|
-
| name |
|
16
|
-
| Shiny |
|
17
|
-
| Glowy |
|
18
|
-
|
19
|
-
@javascript
|
20
|
-
Scenario: Autocomplete
|
21
|
-
Given I go to the home page
|
22
|
-
And I fill in "Brand name" with "al"
|
23
|
-
And I choose "Alpha" in the autocomplete list
|
24
|
-
Then the "Brand name" field should contain "Alpha"
|
25
|
-
|
26
|
-
@javascript
|
27
|
-
Scenario: Autocomplete, id_element option
|
28
|
-
Given I go to the new id element page
|
29
|
-
And I fill in "Brand name" with "al"
|
30
|
-
And I choose "Alpha" in the autocomplete list
|
31
|
-
Then the "Brand name" field should contain "Alpha"
|
32
|
-
And the "Brand" field should contain the "Alpha" brand id
|
33
|
-
|
34
|
-
@javascript
|
35
|
-
Scenario: Autocomplete for a sub class
|
36
|
-
Given the following foreign brands exists:
|
37
|
-
| name |
|
38
|
-
| Omega |
|
39
|
-
Given I go to the new sub class page
|
40
|
-
And I fill in "Brand name" with "om"
|
41
|
-
And I choose "Omega" in the autocomplete list
|
42
|
-
Then the "Brand name" field should contain "Omega"
|
43
|
-
|
44
|
-
@javascript
|
45
|
-
Scenario: Autocomplete
|
46
|
-
Given I go to the new multiple selection page
|
47
|
-
And I send al to "Brand name"
|
48
|
-
And I choose "Alpha" in the autocomplete list
|
49
|
-
And I send bet to "Brand name"
|
50
|
-
And I choose "Beta" in the autocomplete list
|
51
|
-
Then the "Brand name" field should contain "Alpha,Beta"
|
52
|
-
|
53
|
-
@javascript
|
54
|
-
Scenario: Autocomplete for Nested Models
|
55
|
-
Given I go to the new nested model page
|
56
|
-
When I send sh to "Feature Name"
|
57
|
-
And I choose "Shiny" in the autocomplete list
|
58
|
-
Then the "Feature Name" field should contain "Glowy,Shiny"
|
59
|
-
|
60
|
-
@javascript
|
61
|
-
Scenario: Autocomplete with simple_form
|
62
|
-
Given I go to the new simple form page
|
63
|
-
And I fill in "Brand name" with "al"
|
64
|
-
And I choose "Alpha" in the autocomplete list
|
65
|
-
Then the "Brand name" field should contain "Alpha"
|
66
|
-
|
67
|
-
@javascript
|
68
|
-
Scenario: Autocomplete with scope
|
69
|
-
Given the "Kappa" brand has an address
|
70
|
-
Given I go to the new scoped autocomplete page
|
71
|
-
And I fill in "Brand name" with "ka"
|
72
|
-
And I choose "Kappa" in the autocomplete list
|
73
|
-
Then the "Brand name" field should contain "Kappa"
|