netzke-testing 0.9.0 → 0.9.1
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.
- checksums.yaml +4 -4
- data/Gemfile +6 -0
- data/README.md +11 -2
- data/app/controllers/netzke/{netzke/testing_controller.rb → testing_controller.rb} +0 -0
- data/lib/netzke/testing/version.rb +1 -1
- data/netzke-testing.gemspec +3 -0
- data/{test/dummy → spec/rails_app}/README.rdoc +0 -0
- data/{test/dummy → spec/rails_app}/Rakefile +1 -1
- data/{test/dummy → spec/rails_app}/app/assets/images/.keep +0 -0
- data/{test/dummy → spec/rails_app}/app/assets/javascripts/application.js +3 -0
- data/{test/dummy → spec/rails_app}/app/assets/stylesheets/application.css +0 -0
- data/{test/dummy → spec/rails_app}/app/components/foo.rb +0 -0
- data/{test/dummy → spec/rails_app}/app/controllers/application_controller.rb +0 -0
- data/{test/dummy → spec/rails_app}/app/controllers/concerns/.keep +0 -0
- data/{test/dummy → spec/rails_app}/app/helpers/application_helper.rb +0 -0
- data/{test/dummy → spec/rails_app}/app/mailers/.keep +0 -0
- data/{test/dummy → spec/rails_app}/app/models/.keep +0 -0
- data/{test/dummy → spec/rails_app}/app/models/concerns/.keep +0 -0
- data/{test/dummy → spec/rails_app}/app/views/layouts/application.html.erb +1 -1
- data/{test/dummy → spec/rails_app}/bin/bundle +0 -0
- data/{test/dummy → spec/rails_app}/bin/rails +0 -0
- data/{test/dummy → spec/rails_app}/bin/rake +0 -0
- data/{test/dummy → spec/rails_app}/config.ru +0 -0
- data/{test/dummy → spec/rails_app}/config/application.rb +5 -4
- data/{test/dummy → spec/rails_app}/config/boot.rb +0 -0
- data/{test/dummy → spec/rails_app}/config/database.yml +0 -0
- data/{test/dummy → spec/rails_app}/config/environment.rb +1 -1
- data/{test/dummy → spec/rails_app}/config/environments/development.rb +7 -1
- data/{test/dummy → spec/rails_app}/config/environments/production.rb +1 -1
- data/{test/dummy → spec/rails_app}/config/environments/test.rb +2 -2
- data/{test/dummy → spec/rails_app}/config/initializers/backtrace_silencers.rb +0 -0
- data/{test/dummy → spec/rails_app}/config/initializers/filter_parameter_logging.rb +0 -0
- data/{test/dummy → spec/rails_app}/config/initializers/inflections.rb +0 -0
- data/{test/dummy → spec/rails_app}/config/initializers/mime_types.rb +0 -0
- data/{test/dummy → spec/rails_app}/config/initializers/secret_token.rb +1 -1
- data/spec/rails_app/config/initializers/session_store.rb +3 -0
- data/{test/dummy → spec/rails_app}/config/initializers/wrap_parameters.rb +0 -0
- data/{test/dummy → spec/rails_app}/config/locales/en.yml +0 -0
- data/spec/rails_app/config/routes.rb +3 -0
- data/{test/dummy/lib/assets/.keep → spec/rails_app/db/development.sqlite3} +0 -0
- data/spec/rails_app/db/seeds.rb +7 -0
- data/{test/dummy/log → spec/rails_app/lib/assets}/.keep +0 -0
- data/{test/dummy/public/favicon.ico → spec/rails_app/lib/tasks/.keep} +0 -0
- data/spec/rails_app/log/.keep +0 -0
- data/{test/dummy → spec/rails_app}/public/404.html +0 -0
- data/{test/dummy → spec/rails_app}/public/422.html +0 -0
- data/{test/dummy → spec/rails_app}/public/500.html +0 -0
- data/spec/rails_app/public/favicon.ico +0 -0
- data/spec/rails_app/public/robots.txt +5 -0
- data/spec/spec_helper.rb +44 -0
- data/spec/testing_controller_spec.rb +8 -0
- metadata +135 -93
- data/test/controllers/netzke_testing_controller_test.rb +0 -9
- data/test/dummy/config/initializers/session_store.rb +0 -3
- data/test/dummy/config/routes.rb +0 -58
- data/test/dummy/spec/javascripts/foo.js.coffee +0 -3
- data/test/helpers/netzke_testing_helper_test.rb +0 -4
- data/test/integration/navigation_test.rb +0 -10
- data/test/netzke_testing_test.rb +0 -7
- data/test/test_helper.rb +0 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b2f147065edf1276d30dfba903bc05f54dbf0720
|
|
4
|
+
data.tar.gz: 65575135cbe59ceb6315fd05dee8e49f6bf5b63d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 938b6591d4291148e65d4d746483116345f793b6b7f7749d9fd271ccd7a997270f71e8b7738a96b03d981a6b17ba0fdbe3731d8dec1d6abed6ea4167529f4366
|
|
7
|
+
data.tar.gz: dec776f456dd4a33d00ad9989dec8b6579cefc6b5a818f787efb8e0be68ebc359d225aa3594c1365ebf6dcc47bf050354bc990e6e50fb309f330cb287b83ca0e
|
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -57,14 +57,23 @@ The gem provides a number of helpers that may help you writing less code and mak
|
|
|
57
57
|
expectToSee header 'Empty'
|
|
58
58
|
done()
|
|
59
59
|
|
|
60
|
+
In order to enable these helpers, add the following line somewhere in your `RSpec.configure` block:
|
|
61
|
+
|
|
62
|
+
RSpec.configure do |config|
|
|
63
|
+
Netzke::Testing.rspec_init(config)
|
|
64
|
+
# ...
|
|
65
|
+
end
|
|
66
|
+
|
|
60
67
|
Keep in mind the following:
|
|
61
68
|
|
|
62
69
|
* the current set of helpers is in flux, and may be drastically changed sooner than you may expect
|
|
63
70
|
* the helpers directly pollute the `window` namespace; if you decide you're better off without provided helpers,
|
|
64
71
|
specify 'no-helpers=true' as an extra URL parameter
|
|
65
72
|
|
|
66
|
-
See the [source
|
|
67
|
-
netzke-
|
|
73
|
+
See the [source
|
|
74
|
+
code](https://github.com/netzke/netzke-testing/tree/master/app/assets/javascripts/netzke/testing/helpers) for currently
|
|
75
|
+
implemented helpers (TODO: document them). Also, refer to other Netzke gems source code (like netzke-core and
|
|
76
|
+
netzke-basepack) to see examples using the helpers.
|
|
68
77
|
|
|
69
78
|
## Testing with selenium webdriver
|
|
70
79
|
|
|
File without changes
|
data/netzke-testing.gemspec
CHANGED
|
@@ -20,4 +20,7 @@ Gem::Specification.new do |spec|
|
|
|
20
20
|
|
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.3"
|
|
22
22
|
spec.add_development_dependency "rake"
|
|
23
|
+
spec.add_development_dependency "rails"
|
|
24
|
+
spec.add_development_dependency "rspec-rails"
|
|
25
|
+
spec.add_development_dependency "coffee-script"
|
|
23
26
|
end
|
|
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
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html>
|
|
3
3
|
<head>
|
|
4
|
-
<title>
|
|
4
|
+
<title>RailsApp</title>
|
|
5
5
|
<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
|
|
6
6
|
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
|
|
7
7
|
<%= csrf_meta_tags %>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -3,10 +3,12 @@ require File.expand_path('../boot', __FILE__)
|
|
|
3
3
|
require "action_controller/railtie"
|
|
4
4
|
require "sprockets/railtie"
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
# Require the gems listed in Gemfile, including any gems
|
|
7
|
+
# you've limited to :test, :development, or :production.
|
|
8
|
+
Bundler.require(:default, Rails.env)
|
|
9
|
+
require "netzke/testing"
|
|
8
10
|
|
|
9
|
-
module
|
|
11
|
+
module RailsApp
|
|
10
12
|
class Application < Rails::Application
|
|
11
13
|
# Settings in config/environments/* take precedence over those specified here.
|
|
12
14
|
# Application configuration should go into files in config/initializers
|
|
@@ -21,4 +23,3 @@ module Dummy
|
|
|
21
23
|
# config.i18n.default_locale = :de
|
|
22
24
|
end
|
|
23
25
|
end
|
|
24
|
-
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
RailsApp::Application.configure do
|
|
2
2
|
# Settings specified here will take precedence over those in config/application.rb.
|
|
3
3
|
|
|
4
4
|
# In the development environment your application's code is reloaded on
|
|
@@ -13,9 +13,15 @@ Dummy::Application.configure do
|
|
|
13
13
|
config.consider_all_requests_local = true
|
|
14
14
|
config.action_controller.perform_caching = false
|
|
15
15
|
|
|
16
|
+
# Don't care if the mailer can't send.
|
|
17
|
+
# config.action_mailer.raise_delivery_errors = false
|
|
18
|
+
|
|
16
19
|
# Print deprecation notices to the Rails logger.
|
|
17
20
|
config.active_support.deprecation = :log
|
|
18
21
|
|
|
22
|
+
# Raise an error on page load if there are pending migrations
|
|
23
|
+
# config.active_record.migration_error = :page_load
|
|
24
|
+
|
|
19
25
|
# Debug mode disables concatenation and preprocessing of assets.
|
|
20
26
|
# This option may cause significant delays in view rendering with a large
|
|
21
27
|
# number of complex assets.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
RailsApp::Application.configure do
|
|
2
2
|
# Settings specified here will take precedence over those in config/application.rb.
|
|
3
3
|
|
|
4
4
|
# The test environment is used exclusively to run your application's
|
|
@@ -29,7 +29,7 @@ Dummy::Application.configure do
|
|
|
29
29
|
# Tell Action Mailer not to deliver emails to the real world.
|
|
30
30
|
# The :test delivery method accumulates sent emails in the
|
|
31
31
|
# ActionMailer::Base.deliveries array.
|
|
32
|
-
config.action_mailer.delivery_method = :test
|
|
32
|
+
# config.action_mailer.delivery_method = :test
|
|
33
33
|
|
|
34
34
|
# Print deprecation notices to the stderr.
|
|
35
35
|
config.active_support.deprecation = :stderr
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
|
|
10
10
|
# Make sure your secret_key_base is kept private
|
|
11
11
|
# if you're sharing your code publicly.
|
|
12
|
-
|
|
12
|
+
RailsApp::Application.config.secret_key_base = '5d0797785cb8b23c9656b01d77f2296275565682b4d185d2772c4d6d55a6da98a07210befebe36610acbe235af09cafd445ac623536430cb6f0eb8e62dbb0467'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# This file should contain all the record creation needed to seed the database with its default values.
|
|
2
|
+
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
|
|
3
|
+
#
|
|
4
|
+
# Examples:
|
|
5
|
+
#
|
|
6
|
+
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
|
|
7
|
+
# Mayor.create(name: 'Emanuel', city: cities.first)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/spec/spec_helper.rb
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
|
2
|
+
ENV["RAILS_ENV"] ||= 'test'
|
|
3
|
+
require File.expand_path("../rails_app/config/environment", __FILE__)
|
|
4
|
+
require 'rspec/rails'
|
|
5
|
+
require 'rspec/autorun'
|
|
6
|
+
|
|
7
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
|
8
|
+
# in spec/support/ and its subdirectories.
|
|
9
|
+
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
|
|
10
|
+
|
|
11
|
+
# Checks for pending migrations before tests are run.
|
|
12
|
+
# If you are not using ActiveRecord, you can remove this line.
|
|
13
|
+
ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)
|
|
14
|
+
|
|
15
|
+
RSpec.configure do |config|
|
|
16
|
+
require 'capybara/rspec'
|
|
17
|
+
require 'capybara/rails'
|
|
18
|
+
# ## Mock Framework
|
|
19
|
+
#
|
|
20
|
+
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
|
|
21
|
+
#
|
|
22
|
+
# config.mock_with :mocha
|
|
23
|
+
# config.mock_with :flexmock
|
|
24
|
+
# config.mock_with :rr
|
|
25
|
+
|
|
26
|
+
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
|
27
|
+
# config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
|
28
|
+
|
|
29
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
|
30
|
+
# examples within a transaction, remove the following line or assign false
|
|
31
|
+
# instead of true.
|
|
32
|
+
# config.use_transactional_fixtures = true
|
|
33
|
+
|
|
34
|
+
# If true, the base class of anonymous controllers will be inferred
|
|
35
|
+
# automatically. This will be the default behavior in future versions of
|
|
36
|
+
# rspec-rails.
|
|
37
|
+
config.infer_base_class_for_anonymous_controllers = false
|
|
38
|
+
|
|
39
|
+
# Run specs in random order to surface order dependencies. If you find an
|
|
40
|
+
# order dependency and want to debug it, you can fix the order by providing
|
|
41
|
+
# the seed, which is printed after each run.
|
|
42
|
+
# --seed 1234
|
|
43
|
+
config.order = "random"
|
|
44
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: netzke-testing
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Max Gorin
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-
|
|
11
|
+
date: 2013-12-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -38,6 +38,48 @@ dependencies:
|
|
|
38
38
|
- - '>='
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '0'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: rails
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - '>='
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '0'
|
|
48
|
+
type: :development
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - '>='
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: rspec-rails
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - '>='
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '0'
|
|
62
|
+
type: :development
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - '>='
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '0'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: coffee-script
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - '>='
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '0'
|
|
76
|
+
type: :development
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - '>='
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '0'
|
|
41
83
|
description: Provides help with developing and testing Netzke components
|
|
42
84
|
email:
|
|
43
85
|
- gorinme@gmail.com
|
|
@@ -60,7 +102,7 @@ files:
|
|
|
60
102
|
- app/assets/vendor/javascripts/mocha/mocha.js
|
|
61
103
|
- app/assets/vendor/stylesheets/mocha/mocha.css
|
|
62
104
|
- app/controllers/.keep
|
|
63
|
-
- app/controllers/netzke/
|
|
105
|
+
- app/controllers/netzke/testing_controller.rb
|
|
64
106
|
- app/helpers/.keep
|
|
65
107
|
- app/helpers/netzke_testing_helper.rb
|
|
66
108
|
- app/mailers/.keep
|
|
@@ -75,51 +117,51 @@ files:
|
|
|
75
117
|
- lib/netzke/testing/helpers.rb
|
|
76
118
|
- lib/netzke/testing/version.rb
|
|
77
119
|
- netzke-testing.gemspec
|
|
78
|
-
-
|
|
79
|
-
-
|
|
80
|
-
-
|
|
81
|
-
-
|
|
82
|
-
-
|
|
83
|
-
-
|
|
84
|
-
-
|
|
85
|
-
-
|
|
86
|
-
-
|
|
87
|
-
-
|
|
88
|
-
-
|
|
89
|
-
-
|
|
90
|
-
-
|
|
91
|
-
-
|
|
92
|
-
-
|
|
93
|
-
-
|
|
94
|
-
-
|
|
95
|
-
-
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
-
-
|
|
99
|
-
-
|
|
100
|
-
-
|
|
101
|
-
-
|
|
102
|
-
-
|
|
103
|
-
-
|
|
104
|
-
-
|
|
105
|
-
-
|
|
106
|
-
-
|
|
107
|
-
-
|
|
108
|
-
-
|
|
109
|
-
-
|
|
110
|
-
-
|
|
111
|
-
-
|
|
112
|
-
-
|
|
113
|
-
-
|
|
114
|
-
-
|
|
115
|
-
-
|
|
116
|
-
-
|
|
117
|
-
-
|
|
118
|
-
-
|
|
119
|
-
-
|
|
120
|
-
-
|
|
121
|
-
-
|
|
122
|
-
-
|
|
120
|
+
- spec/rails_app/README.rdoc
|
|
121
|
+
- spec/rails_app/Rakefile
|
|
122
|
+
- spec/rails_app/app/assets/images/.keep
|
|
123
|
+
- spec/rails_app/app/assets/javascripts/application.js
|
|
124
|
+
- spec/rails_app/app/assets/stylesheets/application.css
|
|
125
|
+
- spec/rails_app/app/components/foo.rb
|
|
126
|
+
- spec/rails_app/app/controllers/application_controller.rb
|
|
127
|
+
- spec/rails_app/app/controllers/concerns/.keep
|
|
128
|
+
- spec/rails_app/app/helpers/application_helper.rb
|
|
129
|
+
- spec/rails_app/app/mailers/.keep
|
|
130
|
+
- spec/rails_app/app/models/.keep
|
|
131
|
+
- spec/rails_app/app/models/concerns/.keep
|
|
132
|
+
- spec/rails_app/app/views/layouts/application.html.erb
|
|
133
|
+
- spec/rails_app/bin/bundle
|
|
134
|
+
- spec/rails_app/bin/rails
|
|
135
|
+
- spec/rails_app/bin/rake
|
|
136
|
+
- spec/rails_app/config.ru
|
|
137
|
+
- spec/rails_app/config/application.rb
|
|
138
|
+
- spec/rails_app/config/boot.rb
|
|
139
|
+
- spec/rails_app/config/database.yml
|
|
140
|
+
- spec/rails_app/config/environment.rb
|
|
141
|
+
- spec/rails_app/config/environments/development.rb
|
|
142
|
+
- spec/rails_app/config/environments/production.rb
|
|
143
|
+
- spec/rails_app/config/environments/test.rb
|
|
144
|
+
- spec/rails_app/config/initializers/backtrace_silencers.rb
|
|
145
|
+
- spec/rails_app/config/initializers/filter_parameter_logging.rb
|
|
146
|
+
- spec/rails_app/config/initializers/inflections.rb
|
|
147
|
+
- spec/rails_app/config/initializers/mime_types.rb
|
|
148
|
+
- spec/rails_app/config/initializers/secret_token.rb
|
|
149
|
+
- spec/rails_app/config/initializers/session_store.rb
|
|
150
|
+
- spec/rails_app/config/initializers/wrap_parameters.rb
|
|
151
|
+
- spec/rails_app/config/locales/en.yml
|
|
152
|
+
- spec/rails_app/config/routes.rb
|
|
153
|
+
- spec/rails_app/db/development.sqlite3
|
|
154
|
+
- spec/rails_app/db/seeds.rb
|
|
155
|
+
- spec/rails_app/lib/assets/.keep
|
|
156
|
+
- spec/rails_app/lib/tasks/.keep
|
|
157
|
+
- spec/rails_app/log/.keep
|
|
158
|
+
- spec/rails_app/public/404.html
|
|
159
|
+
- spec/rails_app/public/422.html
|
|
160
|
+
- spec/rails_app/public/500.html
|
|
161
|
+
- spec/rails_app/public/favicon.ico
|
|
162
|
+
- spec/rails_app/public/robots.txt
|
|
163
|
+
- spec/spec_helper.rb
|
|
164
|
+
- spec/testing_controller_spec.rb
|
|
123
165
|
homepage: http://netzke.org
|
|
124
166
|
licenses:
|
|
125
167
|
- MIT
|
|
@@ -145,49 +187,49 @@ signing_key:
|
|
|
145
187
|
specification_version: 4
|
|
146
188
|
summary: Testing helpers for Netzke applications and gems
|
|
147
189
|
test_files:
|
|
148
|
-
-
|
|
149
|
-
-
|
|
150
|
-
-
|
|
151
|
-
-
|
|
152
|
-
-
|
|
153
|
-
-
|
|
154
|
-
-
|
|
155
|
-
-
|
|
156
|
-
-
|
|
157
|
-
-
|
|
158
|
-
-
|
|
159
|
-
-
|
|
160
|
-
-
|
|
161
|
-
-
|
|
162
|
-
-
|
|
163
|
-
-
|
|
164
|
-
-
|
|
165
|
-
-
|
|
166
|
-
-
|
|
167
|
-
-
|
|
168
|
-
-
|
|
169
|
-
-
|
|
170
|
-
-
|
|
171
|
-
-
|
|
172
|
-
-
|
|
173
|
-
-
|
|
174
|
-
-
|
|
175
|
-
-
|
|
176
|
-
-
|
|
177
|
-
-
|
|
178
|
-
-
|
|
179
|
-
-
|
|
180
|
-
-
|
|
181
|
-
-
|
|
182
|
-
-
|
|
183
|
-
-
|
|
184
|
-
-
|
|
185
|
-
-
|
|
186
|
-
-
|
|
187
|
-
-
|
|
188
|
-
-
|
|
189
|
-
-
|
|
190
|
-
-
|
|
191
|
-
-
|
|
192
|
-
-
|
|
190
|
+
- spec/rails_app/README.rdoc
|
|
191
|
+
- spec/rails_app/Rakefile
|
|
192
|
+
- spec/rails_app/app/assets/images/.keep
|
|
193
|
+
- spec/rails_app/app/assets/javascripts/application.js
|
|
194
|
+
- spec/rails_app/app/assets/stylesheets/application.css
|
|
195
|
+
- spec/rails_app/app/components/foo.rb
|
|
196
|
+
- spec/rails_app/app/controllers/application_controller.rb
|
|
197
|
+
- spec/rails_app/app/controllers/concerns/.keep
|
|
198
|
+
- spec/rails_app/app/helpers/application_helper.rb
|
|
199
|
+
- spec/rails_app/app/mailers/.keep
|
|
200
|
+
- spec/rails_app/app/models/.keep
|
|
201
|
+
- spec/rails_app/app/models/concerns/.keep
|
|
202
|
+
- spec/rails_app/app/views/layouts/application.html.erb
|
|
203
|
+
- spec/rails_app/bin/bundle
|
|
204
|
+
- spec/rails_app/bin/rails
|
|
205
|
+
- spec/rails_app/bin/rake
|
|
206
|
+
- spec/rails_app/config.ru
|
|
207
|
+
- spec/rails_app/config/application.rb
|
|
208
|
+
- spec/rails_app/config/boot.rb
|
|
209
|
+
- spec/rails_app/config/database.yml
|
|
210
|
+
- spec/rails_app/config/environment.rb
|
|
211
|
+
- spec/rails_app/config/environments/development.rb
|
|
212
|
+
- spec/rails_app/config/environments/production.rb
|
|
213
|
+
- spec/rails_app/config/environments/test.rb
|
|
214
|
+
- spec/rails_app/config/initializers/backtrace_silencers.rb
|
|
215
|
+
- spec/rails_app/config/initializers/filter_parameter_logging.rb
|
|
216
|
+
- spec/rails_app/config/initializers/inflections.rb
|
|
217
|
+
- spec/rails_app/config/initializers/mime_types.rb
|
|
218
|
+
- spec/rails_app/config/initializers/secret_token.rb
|
|
219
|
+
- spec/rails_app/config/initializers/session_store.rb
|
|
220
|
+
- spec/rails_app/config/initializers/wrap_parameters.rb
|
|
221
|
+
- spec/rails_app/config/locales/en.yml
|
|
222
|
+
- spec/rails_app/config/routes.rb
|
|
223
|
+
- spec/rails_app/db/development.sqlite3
|
|
224
|
+
- spec/rails_app/db/seeds.rb
|
|
225
|
+
- spec/rails_app/lib/assets/.keep
|
|
226
|
+
- spec/rails_app/lib/tasks/.keep
|
|
227
|
+
- spec/rails_app/log/.keep
|
|
228
|
+
- spec/rails_app/public/404.html
|
|
229
|
+
- spec/rails_app/public/422.html
|
|
230
|
+
- spec/rails_app/public/500.html
|
|
231
|
+
- spec/rails_app/public/favicon.ico
|
|
232
|
+
- spec/rails_app/public/robots.txt
|
|
233
|
+
- spec/spec_helper.rb
|
|
234
|
+
- spec/testing_controller_spec.rb
|
|
193
235
|
has_rdoc:
|
data/test/dummy/config/routes.rb
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
Dummy::Application.routes.draw do
|
|
2
|
-
# The priority is based upon order of creation: first created -> highest priority.
|
|
3
|
-
# See how all your routes lay out with "rake routes".
|
|
4
|
-
|
|
5
|
-
# You can have the root of your site routed with "root"
|
|
6
|
-
# root 'welcome#index'
|
|
7
|
-
|
|
8
|
-
# Example of regular route:
|
|
9
|
-
# get 'products/:id' => 'catalog#view'
|
|
10
|
-
|
|
11
|
-
# Example of named route that can be invoked with purchase_url(id: product.id)
|
|
12
|
-
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
|
|
13
|
-
|
|
14
|
-
# Example resource route (maps HTTP verbs to controller actions automatically):
|
|
15
|
-
# resources :products
|
|
16
|
-
|
|
17
|
-
# Example resource route with options:
|
|
18
|
-
# resources :products do
|
|
19
|
-
# member do
|
|
20
|
-
# get 'short'
|
|
21
|
-
# post 'toggle'
|
|
22
|
-
# end
|
|
23
|
-
#
|
|
24
|
-
# collection do
|
|
25
|
-
# get 'sold'
|
|
26
|
-
# end
|
|
27
|
-
# end
|
|
28
|
-
|
|
29
|
-
# Example resource route with sub-resources:
|
|
30
|
-
# resources :products do
|
|
31
|
-
# resources :comments, :sales
|
|
32
|
-
# resource :seller
|
|
33
|
-
# end
|
|
34
|
-
|
|
35
|
-
# Example resource route with more complex sub-resources:
|
|
36
|
-
# resources :products do
|
|
37
|
-
# resources :comments
|
|
38
|
-
# resources :sales do
|
|
39
|
-
# get 'recent', on: :collection
|
|
40
|
-
# end
|
|
41
|
-
# end
|
|
42
|
-
|
|
43
|
-
# Example resource route with concerns:
|
|
44
|
-
# concern :toggleable do
|
|
45
|
-
# post 'toggle'
|
|
46
|
-
# end
|
|
47
|
-
# resources :posts, concerns: :toggleable
|
|
48
|
-
# resources :photos, concerns: :toggleable
|
|
49
|
-
|
|
50
|
-
# Example resource route within a namespace:
|
|
51
|
-
# namespace :admin do
|
|
52
|
-
# # Directs /admin/products/* to Admin::ProductsController
|
|
53
|
-
# # (app/controllers/admin/products_controller.rb)
|
|
54
|
-
# resources :products
|
|
55
|
-
# end
|
|
56
|
-
|
|
57
|
-
netzke
|
|
58
|
-
end
|
data/test/netzke_testing_test.rb
DELETED
data/test/test_helper.rb
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Configure Rails Environment
|
|
2
|
-
ENV["RAILS_ENV"] = "test"
|
|
3
|
-
|
|
4
|
-
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
|
5
|
-
require "rails/test_help"
|
|
6
|
-
|
|
7
|
-
Rails.backtrace_cleaner.remove_silencers!
|
|
8
|
-
|
|
9
|
-
# Load support files
|
|
10
|
-
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
|
11
|
-
|
|
12
|
-
# Load fixtures from the engine
|
|
13
|
-
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
|
14
|
-
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
|
15
|
-
end
|