selections 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +31 -0
- data/app/assets/javascripts/selections/application.js +9 -0
- data/app/assets/javascripts/selections/selections.js +2 -0
- data/app/assets/stylesheets/scaffold.css +56 -0
- data/app/assets/stylesheets/selections/application.css +7 -0
- data/app/assets/stylesheets/selections/selections.css +4 -0
- data/app/controllers/selections/application_controller.rb +4 -0
- data/app/controllers/selections/selections_controller.rb +45 -0
- data/app/helpers/selections/application_helper.rb +4 -0
- data/app/helpers/selections/selectors_helper.rb +4 -0
- data/app/models/selections/selection.rb +83 -0
- data/app/views/layouts/selections/application.html.erb +1 -0
- data/app/views/selections/selections/_form.html.erb +41 -0
- data/app/views/selections/selections/edit.html.erb +6 -0
- data/app/views/selections/selections/index.html.erb +33 -0
- data/app/views/selections/selections/new.html.erb +5 -0
- data/app/views/selections/selections/show.html.erb +35 -0
- data/config/initializers/selections.rb +1 -0
- data/config/routes.rb +5 -0
- data/db/migrate/20120114024459_create_selections_selections.rb +15 -0
- data/lib/selections.rb +7 -0
- data/lib/selections/engine.rb +5 -0
- data/lib/selections/selection_select.rb +24 -0
- data/lib/selections/version.rb +3 -0
- data/lib/tasks/selections_tasks.rake +4 -0
- data/spec/controllers/companies_controller_spec.rb +10 -0
- data/spec/controllers/selections/selections_controller_spec.rb +165 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +9 -0
- data/spec/dummy/app/assets/javascripts/companies.js +2 -0
- data/spec/dummy/app/assets/stylesheets/application.css +7 -0
- data/spec/dummy/app/assets/stylesheets/companies.css +4 -0
- data/spec/dummy/app/assets/stylesheets/scaffold.css +56 -0
- data/spec/dummy/app/controllers/application_controller.rb +2 -0
- data/spec/dummy/app/controllers/companies_controller.rb +83 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/helpers/companies_helper.rb +2 -0
- data/spec/dummy/app/models/company.rb +7 -0
- data/spec/dummy/app/views/companies/_form.html.erb +3 -0
- data/spec/dummy/app/views/companies/edit.html.erb +4 -0
- data/spec/dummy/app/views/companies/index.html.erb +27 -0
- data/spec/dummy/app/views/companies/new.html.erb +5 -0
- data/spec/dummy/app/views/companies/show.html.erb +20 -0
- data/spec/dummy/app/views/layouts/application.html.erb +11 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +45 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +30 -0
- data/spec/dummy/config/environments/production.rb +60 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +10 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +6 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20120114125226_create_selections_selections.rb +15 -0
- data/spec/dummy/db/migrate/20120115055119_create_companies.rb +12 -0
- data/spec/dummy/db/schema.rb +38 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +94 -0
- data/spec/dummy/log/test.log +26360 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +26 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/helpers/selections/selections_helper_spec.rb +15 -0
- data/spec/models/company_spec.rb +7 -0
- data/spec/models/selections/selection_spec.rb +219 -0
- data/spec/routing/selections/selections_routing_spec.rb +35 -0
- data/spec/spec_helper.rb +30 -0
- data/spec/support/controller_route_fix.rb +33 -0
- data/spec/support/factories/company_factory.rb +5 -0
- data/spec/support/factories/selection_factory.rb +5 -0
- data/spec/views/companies/edit.html.erb_spec.rb +76 -0
- data/spec/views/companies/new.html.erb_spec.rb +78 -0
- data/spec/views/selections/selections/edit.html.erb_spec.rb +28 -0
- data/spec/views/selections/selections/index.html.erb_spec.rb +40 -0
- data/spec/views/selections/selections/new.html.erb_spec.rb +28 -0
- data/spec/views/selections/selections/show.html.erb_spec.rb +30 -0
- metadata +260 -0
@@ -0,0 +1,76 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe "companies/edit" do
|
4
|
+
context "default selection list" do
|
5
|
+
before do
|
6
|
+
@parent_10 = Factory(:selection, :system_code => "state")
|
7
|
+
@child_11 = Factory(:selection, :parent => @parent_10)
|
8
|
+
@child_12 = Factory(:selection, :parent => @parent_10, :is_default => true)
|
9
|
+
@child_13 = Factory(:selection, :parent => @parent_10)
|
10
|
+
@child_14 = Factory(:selection, :parent => @parent_10)
|
11
|
+
@parent_20 = Factory(:selection, :system_code => "priority")
|
12
|
+
@child_21 = Factory(:selection, :parent => @parent_20, :is_default => true)
|
13
|
+
@child_22 = Factory(:selection, :parent => @parent_21)
|
14
|
+
|
15
|
+
@company = Factory(:company, :state => @child_14)
|
16
|
+
assign(:company, @company)
|
17
|
+
end
|
18
|
+
|
19
|
+
it "should display error when field does not match system_code" do
|
20
|
+
assign(:field, :not_match)
|
21
|
+
render
|
22
|
+
assert_select "form", "Invalid system_code"
|
23
|
+
end
|
24
|
+
|
25
|
+
context "standard" do
|
26
|
+
before(:each) do
|
27
|
+
assign(:field, :state)
|
28
|
+
assign(:options, nil)
|
29
|
+
assign(:html_options, nil)
|
30
|
+
end
|
31
|
+
|
32
|
+
it "selection with default item" do
|
33
|
+
render
|
34
|
+
assert_select "form[action='#{company_path(@company)}'][method='post']" do
|
35
|
+
assert_select "input[type='hidden'][value='put']"
|
36
|
+
assert_select "select#company_state_id[name='company[state_id]']" do
|
37
|
+
selected_options(@parent_10.children, @child_14, false)
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
it "company with no selection set" do
|
42
|
+
@company.update_attribute(:state, nil)
|
43
|
+
render
|
44
|
+
selected_options(@parent_10.children, nil, true)
|
45
|
+
end
|
46
|
+
it "selection with archived item" do
|
47
|
+
@child_13.update_attribute(:archived, true)
|
48
|
+
render
|
49
|
+
selected_options(@parent_10.children-[@child_13], @child_14, false)
|
50
|
+
end
|
51
|
+
it "company with state set that is archived selection" do
|
52
|
+
@child_14.update_attribute(:archived, true)
|
53
|
+
render
|
54
|
+
selected_options(@parent_10.children, @child_14, false)
|
55
|
+
end
|
56
|
+
it "should have blank selection when :include_blank is true" do
|
57
|
+
assign(:options, {:include_blank => true})
|
58
|
+
render
|
59
|
+
selected_options(@parent_10.children, @child_14, true)
|
60
|
+
end
|
61
|
+
it "should not have blank when non set and :include_blank is false" do
|
62
|
+
assign(:options, {:include_blank => false})
|
63
|
+
@company.update_attribute(:state, nil)
|
64
|
+
render
|
65
|
+
selected_options(@parent_10.children, nil, false)
|
66
|
+
end
|
67
|
+
it "it should use fieldname which does not match a system_code" do
|
68
|
+
assign(:options, {:system_code => "state"})
|
69
|
+
assign(:field, :genre)
|
70
|
+
@company.update_attribute(:genre_id, @child_14.id)
|
71
|
+
render
|
72
|
+
selected_options(@parent_10.children, @child_14, false)
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
@@ -0,0 +1,78 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe "companies/new" do
|
4
|
+
context "default selection list" do
|
5
|
+
before do
|
6
|
+
@company = Factory.build(:company)
|
7
|
+
assign(:company, @company)
|
8
|
+
@parent_10 = Factory(:selection, :system_code => "state")
|
9
|
+
@child_11 = Factory(:selection, :parent => @parent_10)
|
10
|
+
@child_12 = Factory(:selection, :parent => @parent_10, :is_default => true)
|
11
|
+
@child_13 = Factory(:selection, :parent => @parent_10)
|
12
|
+
@child_14 = Factory(:selection, :parent => @parent_10)
|
13
|
+
@parent_20 = Factory(:selection, :system_code => "priority")
|
14
|
+
@child_21 = Factory(:selection, :parent => @parent_20, :is_default => true)
|
15
|
+
@child_22 = Factory(:selection, :parent => @parent_21)
|
16
|
+
end
|
17
|
+
|
18
|
+
it "should display error when field does not match system_code" do
|
19
|
+
assign(:field, :not_match)
|
20
|
+
render
|
21
|
+
assert_select "form", "Invalid system_code"
|
22
|
+
end
|
23
|
+
|
24
|
+
context "standard" do
|
25
|
+
before(:each) do
|
26
|
+
assign(:field, :state)
|
27
|
+
assign(:options, nil)
|
28
|
+
assign(:html_options, nil)
|
29
|
+
end
|
30
|
+
|
31
|
+
it "selection with default item" do
|
32
|
+
render
|
33
|
+
assert_select "form", :action => companies_path, :method => "post" do
|
34
|
+
assert_select "select#company_state_id[name='company[state_id]']" do
|
35
|
+
selected_options(@parent_10.children, @child_12, false)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
it "selection with no default set" do
|
40
|
+
@child_12.update_attribute(:is_default, false)
|
41
|
+
render
|
42
|
+
selected_options(@parent_10.children, nil, true)
|
43
|
+
end
|
44
|
+
it "selection with archived item" do
|
45
|
+
@child_13.update_attribute(:archived, true)
|
46
|
+
render
|
47
|
+
selected_options(@parent_10.children-[@child_13], @child_12, false)
|
48
|
+
end
|
49
|
+
it "selection with archived default item" do
|
50
|
+
@child_12.update_attribute(:archived, true)
|
51
|
+
render
|
52
|
+
selected_options(@parent_10.children-[@child_12], nil, true)
|
53
|
+
end
|
54
|
+
it "should have blank selection when :include_blank is true" do
|
55
|
+
assign(:options, {:include_blank => true})
|
56
|
+
render
|
57
|
+
selected_options(@parent_10.children, @child_12, true)
|
58
|
+
end
|
59
|
+
it "should not have blank when no default and :include_blank is false" do
|
60
|
+
assign(:options, {:include_blank => false})
|
61
|
+
@child_12.update_attribute(:is_default, false)
|
62
|
+
render
|
63
|
+
selected_options(@parent_10.children, nil, false)
|
64
|
+
end
|
65
|
+
it "it should use fieldname which does not match a system_code" do
|
66
|
+
assign(:options, {:system_code => "state"})
|
67
|
+
assign(:field, :genre)
|
68
|
+
render
|
69
|
+
selected_options(@parent_10.children, @child_12, false)
|
70
|
+
end
|
71
|
+
it "should use the value in state if set (and ignore default) - when page not saved and reloads" do
|
72
|
+
@company.state = @child_14
|
73
|
+
render
|
74
|
+
selected_options(@parent_10.children, @child_14, false)
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe "selections/edit" do
|
4
|
+
before(:each) do
|
5
|
+
@selection = assign(:selection, stub_model(Selection,
|
6
|
+
:name => "MyString",
|
7
|
+
:parent_id => 1,
|
8
|
+
:system_code => "MyString",
|
9
|
+
:position => 1,
|
10
|
+
:is_default => false,
|
11
|
+
:is_system => false
|
12
|
+
))
|
13
|
+
end
|
14
|
+
|
15
|
+
it "renders the edit selection form" do
|
16
|
+
render
|
17
|
+
|
18
|
+
# Run the generator again with the --webrat flag if you want to use webrat matchers
|
19
|
+
assert_select "form", :action => selections_path(@selection), :method => "post" do
|
20
|
+
assert_select "input#selection_name", :name => "selection[name]"
|
21
|
+
assert_select "input#selection_parent_id", :name => "selection[parent_id]"
|
22
|
+
assert_select "input#selection_system_code", :name => "selection[system_code]"
|
23
|
+
assert_select "input#selection_position", :name => "selection[position]"
|
24
|
+
assert_select "input#selection_is_default", :name => "selection[is_default]"
|
25
|
+
assert_select "input#selection_is_system", :name => "selection[is_system]"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe "selections/index" do
|
4
|
+
before(:each) do
|
5
|
+
assign(:selections, [
|
6
|
+
stub_model(Selection,
|
7
|
+
:name => "Name",
|
8
|
+
:parent_id => 1,
|
9
|
+
:system_code => "System Code",
|
10
|
+
:position => 1,
|
11
|
+
:is_default => false,
|
12
|
+
:is_system => false
|
13
|
+
),
|
14
|
+
stub_model(Selection,
|
15
|
+
:name => "Name",
|
16
|
+
:parent_id => 1,
|
17
|
+
:system_code => "System Code",
|
18
|
+
:position => 1,
|
19
|
+
:is_default => false,
|
20
|
+
:is_system => false
|
21
|
+
)
|
22
|
+
])
|
23
|
+
end
|
24
|
+
|
25
|
+
it "renders a list of selections" do
|
26
|
+
render
|
27
|
+
# Run the generator again with the --webrat flag if you want to use webrat matchers
|
28
|
+
assert_select "tr>td", :text => "Name".to_s, :count => 2
|
29
|
+
# Run the generator again with the --webrat flag if you want to use webrat matchers
|
30
|
+
assert_select "tr>td", :text => 1.to_s, :count => 2
|
31
|
+
# Run the generator again with the --webrat flag if you want to use webrat matchers
|
32
|
+
assert_select "tr>td", :text => "System Code".to_s, :count => 2
|
33
|
+
# Run the generator again with the --webrat flag if you want to use webrat matchers
|
34
|
+
assert_select "tr>td", :text => 1.to_s, :count => 2
|
35
|
+
# Run the generator again with the --webrat flag if you want to use webrat matchers
|
36
|
+
assert_select "tr>td", :text => false.to_s, :count => 2
|
37
|
+
# Run the generator again with the --webrat flag if you want to use webrat matchers
|
38
|
+
assert_select "tr>td", :text => false.to_s, :count => 2
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe "selections/new" do
|
4
|
+
before(:each) do
|
5
|
+
assign(:selection, stub_model(Selection,
|
6
|
+
:name => "MyString",
|
7
|
+
:parent_id => 1,
|
8
|
+
:system_code => "MyString",
|
9
|
+
:position => 1,
|
10
|
+
:is_default => false,
|
11
|
+
:is_system => false
|
12
|
+
).as_new_record)
|
13
|
+
end
|
14
|
+
|
15
|
+
it "renders new selection form" do
|
16
|
+
render
|
17
|
+
|
18
|
+
# Run the generator again with the --webrat flag if you want to use webrat matchers
|
19
|
+
assert_select "form", :action => selections_path, :method => "post" do
|
20
|
+
assert_select "input#selection_name", :name => "selection[name]"
|
21
|
+
assert_select "input#selection_parent_id", :name => "selection[parent_id]"
|
22
|
+
assert_select "input#selection_system_code", :name => "selection[system_code]"
|
23
|
+
assert_select "input#selection_position", :name => "selection[position]"
|
24
|
+
assert_select "input#selection_is_default", :name => "selection[is_default]"
|
25
|
+
assert_select "input#selection_is_system", :name => "selection[is_system]"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe "selections/show" do
|
4
|
+
before(:each) do
|
5
|
+
@selection = assign(:selection, stub_model(Selection,
|
6
|
+
:name => "Name",
|
7
|
+
:parent_id => 1,
|
8
|
+
:system_code => "System Code",
|
9
|
+
:position => 1,
|
10
|
+
:is_default => false,
|
11
|
+
:is_system => false
|
12
|
+
))
|
13
|
+
end
|
14
|
+
|
15
|
+
it "renders attributes in <p>" do
|
16
|
+
render
|
17
|
+
# Run the generator again with the --webrat flag if you want to use webrat matchers
|
18
|
+
rendered.should match(/Name/)
|
19
|
+
# Run the generator again with the --webrat flag if you want to use webrat matchers
|
20
|
+
rendered.should match(/1/)
|
21
|
+
# Run the generator again with the --webrat flag if you want to use webrat matchers
|
22
|
+
rendered.should match(/System Code/)
|
23
|
+
# Run the generator again with the --webrat flag if you want to use webrat matchers
|
24
|
+
rendered.should match(/1/)
|
25
|
+
# Run the generator again with the --webrat flag if you want to use webrat matchers
|
26
|
+
rendered.should match(/false/)
|
27
|
+
# Run the generator again with the --webrat flag if you want to use webrat matchers
|
28
|
+
rendered.should match(/false/)
|
29
|
+
end
|
30
|
+
end
|
metadata
ADDED
@@ -0,0 +1,260 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: selections
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- nigelr
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-01-30 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: acts_as_tree
|
16
|
+
requirement: &70102205805520 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70102205805520
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rails
|
27
|
+
requirement: &70102200713120 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ~>
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 3.1.0
|
33
|
+
type: :development
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70102200713120
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: sqlite3
|
38
|
+
requirement: &70102200711980 !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: *70102200711980
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rspec-rails
|
49
|
+
requirement: &70102200709560 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.7.0
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *70102200709560
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: factory_girl
|
60
|
+
requirement: &70102200708420 !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: *70102200708420
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: capybara
|
71
|
+
requirement: &70102200707220 !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: *70102200707220
|
80
|
+
description: Put a better description here
|
81
|
+
email:
|
82
|
+
- nigelr@brisbanerails.com
|
83
|
+
executables: []
|
84
|
+
extensions: []
|
85
|
+
extra_rdoc_files: []
|
86
|
+
files:
|
87
|
+
- app/assets/javascripts/selections/application.js
|
88
|
+
- app/assets/javascripts/selections/selections.js
|
89
|
+
- app/assets/stylesheets/scaffold.css
|
90
|
+
- app/assets/stylesheets/selections/application.css
|
91
|
+
- app/assets/stylesheets/selections/selections.css
|
92
|
+
- app/controllers/selections/application_controller.rb
|
93
|
+
- app/controllers/selections/selections_controller.rb
|
94
|
+
- app/helpers/selections/application_helper.rb
|
95
|
+
- app/helpers/selections/selectors_helper.rb
|
96
|
+
- app/models/selections/selection.rb
|
97
|
+
- app/views/layouts/selections/application.html.erb
|
98
|
+
- app/views/selections/selections/_form.html.erb
|
99
|
+
- app/views/selections/selections/edit.html.erb
|
100
|
+
- app/views/selections/selections/index.html.erb
|
101
|
+
- app/views/selections/selections/new.html.erb
|
102
|
+
- app/views/selections/selections/show.html.erb
|
103
|
+
- config/initializers/selections.rb
|
104
|
+
- config/routes.rb
|
105
|
+
- db/migrate/20120114024459_create_selections_selections.rb
|
106
|
+
- lib/selections/engine.rb
|
107
|
+
- lib/selections/selection_select.rb
|
108
|
+
- lib/selections/version.rb
|
109
|
+
- lib/selections.rb
|
110
|
+
- lib/tasks/selections_tasks.rake
|
111
|
+
- MIT-LICENSE
|
112
|
+
- Rakefile
|
113
|
+
- README.rdoc
|
114
|
+
- spec/controllers/companies_controller_spec.rb
|
115
|
+
- spec/controllers/selections/selections_controller_spec.rb
|
116
|
+
- spec/dummy/app/assets/javascripts/application.js
|
117
|
+
- spec/dummy/app/assets/javascripts/companies.js
|
118
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
119
|
+
- spec/dummy/app/assets/stylesheets/companies.css
|
120
|
+
- spec/dummy/app/assets/stylesheets/scaffold.css
|
121
|
+
- spec/dummy/app/controllers/application_controller.rb
|
122
|
+
- spec/dummy/app/controllers/companies_controller.rb
|
123
|
+
- spec/dummy/app/helpers/application_helper.rb
|
124
|
+
- spec/dummy/app/helpers/companies_helper.rb
|
125
|
+
- spec/dummy/app/models/company.rb
|
126
|
+
- spec/dummy/app/views/companies/_form.html.erb
|
127
|
+
- spec/dummy/app/views/companies/edit.html.erb
|
128
|
+
- spec/dummy/app/views/companies/index.html.erb
|
129
|
+
- spec/dummy/app/views/companies/new.html.erb
|
130
|
+
- spec/dummy/app/views/companies/show.html.erb
|
131
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
132
|
+
- spec/dummy/config/application.rb
|
133
|
+
- spec/dummy/config/boot.rb
|
134
|
+
- spec/dummy/config/database.yml
|
135
|
+
- spec/dummy/config/environment.rb
|
136
|
+
- spec/dummy/config/environments/development.rb
|
137
|
+
- spec/dummy/config/environments/production.rb
|
138
|
+
- spec/dummy/config/environments/test.rb
|
139
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
140
|
+
- spec/dummy/config/initializers/inflections.rb
|
141
|
+
- spec/dummy/config/initializers/mime_types.rb
|
142
|
+
- spec/dummy/config/initializers/secret_token.rb
|
143
|
+
- spec/dummy/config/initializers/session_store.rb
|
144
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
145
|
+
- spec/dummy/config/locales/en.yml
|
146
|
+
- spec/dummy/config/routes.rb
|
147
|
+
- spec/dummy/config.ru
|
148
|
+
- spec/dummy/db/development.sqlite3
|
149
|
+
- spec/dummy/db/migrate/20120114125226_create_selections_selections.rb
|
150
|
+
- spec/dummy/db/migrate/20120115055119_create_companies.rb
|
151
|
+
- spec/dummy/db/schema.rb
|
152
|
+
- spec/dummy/db/test.sqlite3
|
153
|
+
- spec/dummy/log/development.log
|
154
|
+
- spec/dummy/log/test.log
|
155
|
+
- spec/dummy/public/404.html
|
156
|
+
- spec/dummy/public/422.html
|
157
|
+
- spec/dummy/public/500.html
|
158
|
+
- spec/dummy/public/favicon.ico
|
159
|
+
- spec/dummy/Rakefile
|
160
|
+
- spec/dummy/script/rails
|
161
|
+
- spec/helpers/selections/selections_helper_spec.rb
|
162
|
+
- spec/models/company_spec.rb
|
163
|
+
- spec/models/selections/selection_spec.rb
|
164
|
+
- spec/routing/selections/selections_routing_spec.rb
|
165
|
+
- spec/spec_helper.rb
|
166
|
+
- spec/support/controller_route_fix.rb
|
167
|
+
- spec/support/factories/company_factory.rb
|
168
|
+
- spec/support/factories/selection_factory.rb
|
169
|
+
- spec/views/companies/edit.html.erb_spec.rb
|
170
|
+
- spec/views/companies/new.html.erb_spec.rb
|
171
|
+
- spec/views/selections/selections/edit.html.erb_spec.rb
|
172
|
+
- spec/views/selections/selections/index.html.erb_spec.rb
|
173
|
+
- spec/views/selections/selections/new.html.erb_spec.rb
|
174
|
+
- spec/views/selections/selections/show.html.erb_spec.rb
|
175
|
+
homepage: http://www.brisbanerails.com
|
176
|
+
licenses: []
|
177
|
+
post_install_message:
|
178
|
+
rdoc_options: []
|
179
|
+
require_paths:
|
180
|
+
- lib
|
181
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
182
|
+
none: false
|
183
|
+
requirements:
|
184
|
+
- - ! '>='
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '0'
|
187
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
188
|
+
none: false
|
189
|
+
requirements:
|
190
|
+
- - ! '>='
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: '0'
|
193
|
+
requirements: []
|
194
|
+
rubyforge_project:
|
195
|
+
rubygems_version: 1.8.13
|
196
|
+
signing_key:
|
197
|
+
specification_version: 3
|
198
|
+
summary: Selection list management engine
|
199
|
+
test_files:
|
200
|
+
- spec/controllers/companies_controller_spec.rb
|
201
|
+
- spec/controllers/selections/selections_controller_spec.rb
|
202
|
+
- spec/dummy/app/assets/javascripts/application.js
|
203
|
+
- spec/dummy/app/assets/javascripts/companies.js
|
204
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
205
|
+
- spec/dummy/app/assets/stylesheets/companies.css
|
206
|
+
- spec/dummy/app/assets/stylesheets/scaffold.css
|
207
|
+
- spec/dummy/app/controllers/application_controller.rb
|
208
|
+
- spec/dummy/app/controllers/companies_controller.rb
|
209
|
+
- spec/dummy/app/helpers/application_helper.rb
|
210
|
+
- spec/dummy/app/helpers/companies_helper.rb
|
211
|
+
- spec/dummy/app/models/company.rb
|
212
|
+
- spec/dummy/app/views/companies/_form.html.erb
|
213
|
+
- spec/dummy/app/views/companies/edit.html.erb
|
214
|
+
- spec/dummy/app/views/companies/index.html.erb
|
215
|
+
- spec/dummy/app/views/companies/new.html.erb
|
216
|
+
- spec/dummy/app/views/companies/show.html.erb
|
217
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
218
|
+
- spec/dummy/config/application.rb
|
219
|
+
- spec/dummy/config/boot.rb
|
220
|
+
- spec/dummy/config/database.yml
|
221
|
+
- spec/dummy/config/environment.rb
|
222
|
+
- spec/dummy/config/environments/development.rb
|
223
|
+
- spec/dummy/config/environments/production.rb
|
224
|
+
- spec/dummy/config/environments/test.rb
|
225
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
226
|
+
- spec/dummy/config/initializers/inflections.rb
|
227
|
+
- spec/dummy/config/initializers/mime_types.rb
|
228
|
+
- spec/dummy/config/initializers/secret_token.rb
|
229
|
+
- spec/dummy/config/initializers/session_store.rb
|
230
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
231
|
+
- spec/dummy/config/locales/en.yml
|
232
|
+
- spec/dummy/config/routes.rb
|
233
|
+
- spec/dummy/config.ru
|
234
|
+
- spec/dummy/db/development.sqlite3
|
235
|
+
- spec/dummy/db/migrate/20120114125226_create_selections_selections.rb
|
236
|
+
- spec/dummy/db/migrate/20120115055119_create_companies.rb
|
237
|
+
- spec/dummy/db/schema.rb
|
238
|
+
- spec/dummy/db/test.sqlite3
|
239
|
+
- spec/dummy/log/development.log
|
240
|
+
- spec/dummy/log/test.log
|
241
|
+
- spec/dummy/public/404.html
|
242
|
+
- spec/dummy/public/422.html
|
243
|
+
- spec/dummy/public/500.html
|
244
|
+
- spec/dummy/public/favicon.ico
|
245
|
+
- spec/dummy/Rakefile
|
246
|
+
- spec/dummy/script/rails
|
247
|
+
- spec/helpers/selections/selections_helper_spec.rb
|
248
|
+
- spec/models/company_spec.rb
|
249
|
+
- spec/models/selections/selection_spec.rb
|
250
|
+
- spec/routing/selections/selections_routing_spec.rb
|
251
|
+
- spec/spec_helper.rb
|
252
|
+
- spec/support/controller_route_fix.rb
|
253
|
+
- spec/support/factories/company_factory.rb
|
254
|
+
- spec/support/factories/selection_factory.rb
|
255
|
+
- spec/views/companies/edit.html.erb_spec.rb
|
256
|
+
- spec/views/companies/new.html.erb_spec.rb
|
257
|
+
- spec/views/selections/selections/edit.html.erb_spec.rb
|
258
|
+
- spec/views/selections/selections/index.html.erb_spec.rb
|
259
|
+
- spec/views/selections/selections/new.html.erb_spec.rb
|
260
|
+
- spec/views/selections/selections/show.html.erb_spec.rb
|