homesteading_publisher 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -7
  3. data/Rakefile +6 -9
  4. data/db/migrate/20150107224535_create_posts.rb +33 -0
  5. data/db/migrate/20150108001754_create_settings.rb +11 -0
  6. data/db/migrate/20150108001809_create_licenses.rb +12 -0
  7. data/lib/homesteading_publisher/engine.rb +16 -0
  8. data/lib/homesteading_publisher/version.rb +1 -1
  9. data/lib/tasks/homesteading_publisher_tasks.rake +32 -4
  10. data/{test → spec}/dummy/README.rdoc +0 -0
  11. data/{test → spec}/dummy/Rakefile +0 -0
  12. data/{test → spec}/dummy/app/assets/javascripts/application.js +0 -0
  13. data/{test → spec}/dummy/app/assets/stylesheets/application.css +0 -0
  14. data/{test → spec}/dummy/app/controllers/application_controller.rb +0 -0
  15. data/{test → spec}/dummy/app/helpers/application_helper.rb +0 -0
  16. data/{test → spec}/dummy/app/views/layouts/application.html.erb +0 -0
  17. data/{test → spec}/dummy/bin/bundle +0 -0
  18. data/{test → spec}/dummy/bin/rails +0 -0
  19. data/{test → spec}/dummy/bin/rake +0 -0
  20. data/{test → spec}/dummy/bin/setup +0 -0
  21. data/{test → spec}/dummy/config/application.rb +0 -0
  22. data/{test → spec}/dummy/config/boot.rb +0 -0
  23. data/{test → spec}/dummy/config/database.yml +0 -0
  24. data/{test → spec}/dummy/config/environment.rb +0 -0
  25. data/{test → spec}/dummy/config/environments/development.rb +0 -0
  26. data/{test → spec}/dummy/config/environments/production.rb +0 -0
  27. data/{test → spec}/dummy/config/environments/test.rb +0 -0
  28. data/{test → spec}/dummy/config/initializers/assets.rb +0 -0
  29. data/{test → spec}/dummy/config/initializers/backtrace_silencers.rb +0 -0
  30. data/{test → spec}/dummy/config/initializers/cookies_serializer.rb +0 -0
  31. data/{test → spec}/dummy/config/initializers/filter_parameter_logging.rb +0 -0
  32. data/{test → spec}/dummy/config/initializers/inflections.rb +0 -0
  33. data/{test → spec}/dummy/config/initializers/mime_types.rb +0 -0
  34. data/{test → spec}/dummy/config/initializers/session_store.rb +0 -0
  35. data/{test → spec}/dummy/config/initializers/wrap_parameters.rb +0 -0
  36. data/{test → spec}/dummy/config/locales/en.yml +0 -0
  37. data/{test → spec}/dummy/config/routes.rb +0 -0
  38. data/{test → spec}/dummy/config/secrets.yml +0 -0
  39. data/{test → spec}/dummy/config.ru +0 -0
  40. data/spec/dummy/db/schema.rb +62 -0
  41. data/{test → spec}/dummy/public/404.html +0 -0
  42. data/{test → spec}/dummy/public/422.html +0 -0
  43. data/{test → spec}/dummy/public/500.html +0 -0
  44. data/{test → spec}/dummy/public/favicon.ico +0 -0
  45. data/spec/factories.rb +15 -0
  46. data/spec/models/homesteading/license_spec.rb +11 -0
  47. data/spec/models/homesteading/post_spec.rb +10 -0
  48. data/spec/models/homesteading/settings_spec.rb +10 -0
  49. data/spec/rails_helper.rb +46 -0
  50. data/spec/spec_helper.rb +34 -0
  51. data/spec/support/homesteading/models/post.rb +3 -0
  52. metadata +131 -76
  53. data/test/homesteading_publisher_test.rb +0 -7
  54. data/test/integration/navigation_test.rb +0 -10
  55. data/test/test_helper.rb +0 -19
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e43d26a9872cfe9f0cfb3659cf9d805ac5c88b5
4
- data.tar.gz: c8d1da5cbd2076aa2c6ac7300c628257e8639177
3
+ metadata.gz: db59f2f606b82cd65e8dd857fb4983b657282fd2
4
+ data.tar.gz: 66b35c0df2d7f86ab88917f81703c53691ece838
5
5
  SHA512:
6
- metadata.gz: d0189a82d41fb36d8ce7683047231c4fbd9c476da6cbcdafd691b45176957b470c45716003f3823700da66ad837b457d41ec019d2110f7b848d87caa0f8092ff
7
- data.tar.gz: e3c9b6cf7e947291d8fdc6795c2a2eca9f58c9d7311de49b1a86f198ef39c2ba8a08b969cea670100fddb0bf56bbc750c3820d52f5f091db8889e3fd6d2a4621
6
+ metadata.gz: 060928cb947630275cef03fe51503a44fd13da56b77ac2cafdc4ca9b600ca42e12e3dd808ca358fd8759bf738e781c6d8d7a3fc0b883454531679fe8bcc690e4
7
+ data.tar.gz: fdbbb3eb8ba87e37f0bb3a9d732956f685ba565940000ae39cdc3863de6da5e18f6f620ee78abc9ac488783df5adda1710ac88daca772deefb70d60114bee665
data/README.md CHANGED
@@ -10,7 +10,7 @@ A generic Rails Engine that all HS-* post type publisher apps build on top of.
10
10
 
11
11
  ## Current Version
12
12
 
13
- 0.0.1
13
+ 0.0.10
14
14
 
15
15
 
16
16
  ## Installation
@@ -34,10 +34,6 @@ After bundling, add this to your Rails project's `post.rb` model.
34
34
 
35
35
  **TODO**
36
36
 
37
- ```ruby
38
- ```
39
-
40
-
41
37
  ## Shared post attributes
42
38
 
43
39
  **TODO**
@@ -74,9 +70,9 @@ If you find bugs, have feature requests or questions, please
74
70
  Run once.
75
71
 
76
72
  ```bash
77
- rspec
73
+ rake
78
74
  ```
79
-
75
+ `rake` is needed instead of `rspec` to take care of preparing the dummy application test DB.
80
76
 
81
77
  ## License
82
78
 
data/Rakefile CHANGED
@@ -14,7 +14,7 @@ RDoc::Task.new(:rdoc) do |rdoc|
14
14
  rdoc.rdoc_files.include('lib/**/*.rb')
15
15
  end
16
16
 
17
- APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
17
+ APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
18
18
  load 'rails/tasks/engine.rake'
19
19
 
20
20
 
@@ -26,12 +26,9 @@ Bundler::GemHelper.install_tasks
26
26
 
27
27
  require 'rake/testtask'
28
28
 
29
- Rake::TestTask.new(:test) do |t|
30
- t.libs << 'lib'
31
- t.libs << 'test'
32
- t.pattern = 'test/**/*_test.rb'
33
- t.verbose = false
34
- end
35
-
29
+ require 'rspec/core'
30
+ require 'rspec/core/rake_task'
31
+ desc "Run all specs in spec directory (excluding plugin specs)"
32
+ RSpec::Core::RakeTask.new(:spec => 'app:db:migrate')
36
33
 
37
- task default: :test
34
+ task default: :spec
@@ -0,0 +1,33 @@
1
+ class CreatePosts < ActiveRecord::Migration
2
+ def change
3
+ create_table :posts do |t|
4
+ t.text :title,
5
+ :subtitle,
6
+ :content,
7
+ :in_reply_to,
8
+ :tags,
9
+ :syndication,
10
+ :slug,
11
+ :location_name,
12
+ :location_latitude,
13
+ :location_longitude,
14
+ :location_altitude,
15
+ :wordpress_url,
16
+ :tumblr_url,
17
+ :medium_url,
18
+ :facebook_url
19
+
20
+ t.string :year,
21
+ :month,
22
+ :day,
23
+ :hour,
24
+ :minute,
25
+ :second
26
+
27
+ t.boolean :private
28
+ t.datetime :published_at
29
+
30
+ t.timestamps
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,11 @@
1
+ class CreateSettings < ActiveRecord::Migration
2
+ def change
3
+ create_table :settings do |t|
4
+ t.string :name, :key
5
+ t.text :content
6
+ t.boolean :editable, default: true
7
+
8
+ t.timestamps
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,12 @@
1
+ class CreateLicenses < ActiveRecord::Migration
2
+ def change
3
+ create_table :licenses do |t|
4
+ t.string :name
5
+ t.string :short_code
6
+ t.text :description
7
+ t.text :url
8
+
9
+ t.timestamps
10
+ end
11
+ end
12
+ end
@@ -1,5 +1,21 @@
1
1
  module HomesteadingPublisher
2
2
  class Engine < ::Rails::Engine
3
3
  isolate_namespace HomesteadingPublisher
4
+
5
+ config.generators do |g|
6
+ g.test_framework :rspec, :fixture => false
7
+ g.fixture_replacement :factory_girl, :dir => 'spec/factories'
8
+ g.assets false
9
+ g.helper false
10
+ end
11
+
12
+ initializer :append_migrations do |app|
13
+ unless app.root.to_s.match root.to_s
14
+ config.paths["db/migrate"].expanded.each do |expanded_path|
15
+ app.config.paths["db/migrate"] << expanded_path
16
+ end
17
+ end
18
+ end
19
+
4
20
  end
5
21
  end
@@ -1,3 +1,3 @@
1
1
  module HomesteadingPublisher
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
@@ -1,4 +1,32 @@
1
- # desc "Explaining what the task does"
2
- # task :homesteading_publisher do
3
- # # Task goes here
4
- # end
1
+ namespace :hs do
2
+ namespace :db do
3
+
4
+ desc "HS: Copy and use the example database.yml"
5
+ task :config do
6
+ cp "config/database.example.yml", "config/database.yml"
7
+ end
8
+
9
+ desc "HS: Load the seed data from db/seeds.rb, then your db/dev.seeds.rb"
10
+ task :seed => ["rake:db:seed", "hs:db:seed:rename", "hs:db:seed:again", "hs:db:seed:rerename"]
11
+
12
+ namespace :seed do
13
+ desc "HS: Rename seeds.rb to production.seeds.rb & dev.seeds.rb to seeds.rb"
14
+ task :rename do
15
+ mv "db/seeds.rb", "db/production.seeds.rb"
16
+ mv "db/dev.seeds.rb", "db/seeds.rb"
17
+ end
18
+
19
+ desc "HS: Rename production back to seeds.rb & seeds.rb back to dev"
20
+ task :rerename do
21
+ mv "db/seeds.rb", "db/dev.seeds.rb"
22
+ mv "db/production.seeds.rb", "db/seeds.rb"
23
+ end
24
+
25
+ desc "HS: Seed again after db:seed-ing"
26
+ task :again do
27
+ Rake::Task["rake:db:seed"].execute
28
+ end
29
+ end
30
+
31
+ end
32
+ 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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,62 @@
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 that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20150108001809) do
15
+
16
+ create_table "licenses", force: :cascade do |t|
17
+ t.string "name"
18
+ t.string "short_code"
19
+ t.text "description"
20
+ t.text "url"
21
+ t.datetime "created_at"
22
+ t.datetime "updated_at"
23
+ end
24
+
25
+ create_table "posts", force: :cascade do |t|
26
+ t.text "title"
27
+ t.text "subtitle"
28
+ t.text "content"
29
+ t.text "in_reply_to"
30
+ t.text "tags"
31
+ t.text "syndication"
32
+ t.text "slug"
33
+ t.text "location_name"
34
+ t.text "location_latitude"
35
+ t.text "location_longitude"
36
+ t.text "location_altitude"
37
+ t.text "wordpress_url"
38
+ t.text "tumblr_url"
39
+ t.text "medium_url"
40
+ t.text "facebook_url"
41
+ t.string "year"
42
+ t.string "month"
43
+ t.string "day"
44
+ t.string "hour"
45
+ t.string "minute"
46
+ t.string "second"
47
+ t.boolean "private"
48
+ t.datetime "published_at"
49
+ t.datetime "created_at"
50
+ t.datetime "updated_at"
51
+ end
52
+
53
+ create_table "settings", force: :cascade do |t|
54
+ t.string "name"
55
+ t.string "key"
56
+ t.text "content"
57
+ t.boolean "editable", default: true
58
+ t.datetime "created_at"
59
+ t.datetime "updated_at"
60
+ end
61
+
62
+ end
File without changes
File without changes
File without changes
File without changes
data/spec/factories.rb ADDED
@@ -0,0 +1,15 @@
1
+ FactoryGirl.define do
2
+ factory :post do
3
+ title "Post Test"
4
+ end
5
+
6
+ factory :setting do
7
+ name "test"
8
+ content true
9
+ end
10
+
11
+ factory :license do
12
+ name "License Name"
13
+ short_code "LN"
14
+ end
15
+ end
@@ -0,0 +1,11 @@
1
+ require 'rails_helper'
2
+
3
+ describe License do
4
+ let(:license) { create(:license) }
5
+ describe '.options_for_select' do
6
+ it 'gives an array' do
7
+ license
8
+ expect(License.options_for_select.first).to eq ["License Name (LN)", license.id]
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,10 @@
1
+ require "rails_helper"
2
+
3
+ describe Post do
4
+ describe '.validates' do
5
+ let(:post) { create(:post) }
6
+ it 'is valid' do
7
+ expect(post.valid?).to eq true
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ require "spec_helper"
2
+
3
+ describe Setting do
4
+ let(:setting) { create(:setting) }
5
+ describe '.validates' do
6
+ it 'is valid' do
7
+ expect(setting.valid?).to eq true
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,46 @@
1
+ # This file is copied to spec/ when you run 'rails generate rspec:install'
2
+ ENV["RAILS_ENV"] ||= 'test'
3
+ require 'spec_helper'
4
+ require File.expand_path("../dummy/config/environment", __FILE__)
5
+ require 'rspec/rails'
6
+
7
+ # Requires supporting ruby files with custom matchers and macros, etc, in
8
+ # spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
9
+ # run as spec files by default. This means that files in spec/support that end
10
+ # in _spec.rb will both be required and run as specs, causing the specs to be
11
+ # run twice. It is recommended that you do not name files matching this glob to
12
+ # end with _spec.rb. You can configure this pattern with the --pattern
13
+ # option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
14
+ Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each { |f| require f }
15
+
16
+ require 'factory_girl_rails'
17
+ # Checks for pending migrations before tests are run.
18
+ # If you are not using ActiveRecord, you can remove this line.
19
+ ActiveRecord::Migration.maintain_test_schema!
20
+
21
+ RSpec.configure do |config|
22
+ config.include FactoryGirl::Syntax::Methods
23
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
24
+ config.fixture_path = "#{::Rails.root}/spec/fixtures"
25
+
26
+
27
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
28
+ # examples within a transaction, remove the following line or assign false
29
+ # instead of true.
30
+ config.use_transactional_fixtures = true
31
+
32
+ # RSpec Rails can automatically mix in different behaviours to your tests
33
+ # based on their file location, for example enabling you to call `get` and
34
+ # `post` in specs under `spec/controllers`.
35
+ #
36
+ # You can disable this behaviour by removing the line below, and instead
37
+ # explicitly tag your specs with their type, e.g.:
38
+ #
39
+ # RSpec.describe UsersController, :type => :controller do
40
+ # # ...
41
+ # end
42
+ #
43
+ # The different available types are documented in the features, such as in
44
+ # https://relishapp.com/rspec/rspec-rails/docs
45
+ config.infer_spec_type_from_file_location!
46
+ end
@@ -0,0 +1,34 @@
1
+ # if ENV["CODECLIMATE_REPO_TOKEN"]
2
+ # require "codeclimate-test-reporter"
3
+ # CodeClimate::TestReporter.start
4
+ # end
5
+
6
+ ENV["RAILS_ENV"] ||= "test"
7
+ require File.expand_path("../dummy/config/environment", __FILE__)
8
+ require "rspec/rails"
9
+
10
+ # Requires supporting ruby files with custom matchers and macros, etc,
11
+ # in spec/support/ and its subdirectories.
12
+ Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
13
+
14
+ # Checks for pending migrations before tests are run.
15
+ # If you are not using ActiveRecord, you can remove this line.
16
+ ActiveRecord::Migration.maintain_test_schema!
17
+
18
+ RSpec.configure do |config|
19
+ # If true, the base class of anonymous controllers will be inferred
20
+ # automatically. This will be the default behavior in future versions of
21
+ # rspec-rails.
22
+ config.infer_base_class_for_anonymous_controllers = false
23
+
24
+ # Run specs in random order to surface order dependencies. If you find an
25
+ # order dependency and want to debug it, you can fix the order by providing
26
+ # the seed, which is printed after each run.
27
+ # --seed 1234
28
+ config.order = "random"
29
+
30
+ # TEMP to avoid deprecation warning for stub_chain. See: [d38de8c]
31
+ config.mock_with :rspec do |mocks|
32
+ mocks.syntax = :should
33
+ end
34
+ end
@@ -0,0 +1,3 @@
1
+ class Post < Homesteading::Post
2
+
3
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: homesteading_publisher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane Becker
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-28 00:00:00.000000000 Z
12
+ date: 2015-01-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -53,6 +53,48 @@ dependencies:
53
53
  - - ">="
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: rspec-rails
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ - !ruby/object:Gem::Dependency
71
+ name: capybara
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ - !ruby/object:Gem::Dependency
85
+ name: factory_girl_rails
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
56
98
  description: A generic Rails Engine that all HS-* post type publisher apps build on
57
99
  top of.
58
100
  email:
@@ -73,47 +115,55 @@ files:
73
115
  - app/models/setting.rb
74
116
  - app/views/layouts/homesteading_publisher/application.html.erb
75
117
  - config/routes.rb
118
+ - db/migrate/20150107224535_create_posts.rb
119
+ - db/migrate/20150108001754_create_settings.rb
120
+ - db/migrate/20150108001809_create_licenses.rb
76
121
  - lib/homesteading_publisher.rb
77
122
  - lib/homesteading_publisher/engine.rb
78
123
  - lib/homesteading_publisher/version.rb
79
124
  - lib/tasks/homesteading_publisher_tasks.rake
80
- - test/dummy/README.rdoc
81
- - test/dummy/Rakefile
82
- - test/dummy/app/assets/javascripts/application.js
83
- - test/dummy/app/assets/stylesheets/application.css
84
- - test/dummy/app/controllers/application_controller.rb
85
- - test/dummy/app/helpers/application_helper.rb
86
- - test/dummy/app/views/layouts/application.html.erb
87
- - test/dummy/bin/bundle
88
- - test/dummy/bin/rails
89
- - test/dummy/bin/rake
90
- - test/dummy/bin/setup
91
- - test/dummy/config.ru
92
- - test/dummy/config/application.rb
93
- - test/dummy/config/boot.rb
94
- - test/dummy/config/database.yml
95
- - test/dummy/config/environment.rb
96
- - test/dummy/config/environments/development.rb
97
- - test/dummy/config/environments/production.rb
98
- - test/dummy/config/environments/test.rb
99
- - test/dummy/config/initializers/assets.rb
100
- - test/dummy/config/initializers/backtrace_silencers.rb
101
- - test/dummy/config/initializers/cookies_serializer.rb
102
- - test/dummy/config/initializers/filter_parameter_logging.rb
103
- - test/dummy/config/initializers/inflections.rb
104
- - test/dummy/config/initializers/mime_types.rb
105
- - test/dummy/config/initializers/session_store.rb
106
- - test/dummy/config/initializers/wrap_parameters.rb
107
- - test/dummy/config/locales/en.yml
108
- - test/dummy/config/routes.rb
109
- - test/dummy/config/secrets.yml
110
- - test/dummy/public/404.html
111
- - test/dummy/public/422.html
112
- - test/dummy/public/500.html
113
- - test/dummy/public/favicon.ico
114
- - test/homesteading_publisher_test.rb
115
- - test/integration/navigation_test.rb
116
- - test/test_helper.rb
125
+ - spec/dummy/README.rdoc
126
+ - spec/dummy/Rakefile
127
+ - spec/dummy/app/assets/javascripts/application.js
128
+ - spec/dummy/app/assets/stylesheets/application.css
129
+ - spec/dummy/app/controllers/application_controller.rb
130
+ - spec/dummy/app/helpers/application_helper.rb
131
+ - spec/dummy/app/views/layouts/application.html.erb
132
+ - spec/dummy/bin/bundle
133
+ - spec/dummy/bin/rails
134
+ - spec/dummy/bin/rake
135
+ - spec/dummy/bin/setup
136
+ - spec/dummy/config.ru
137
+ - spec/dummy/config/application.rb
138
+ - spec/dummy/config/boot.rb
139
+ - spec/dummy/config/database.yml
140
+ - spec/dummy/config/environment.rb
141
+ - spec/dummy/config/environments/development.rb
142
+ - spec/dummy/config/environments/production.rb
143
+ - spec/dummy/config/environments/test.rb
144
+ - spec/dummy/config/initializers/assets.rb
145
+ - spec/dummy/config/initializers/backtrace_silencers.rb
146
+ - spec/dummy/config/initializers/cookies_serializer.rb
147
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
148
+ - spec/dummy/config/initializers/inflections.rb
149
+ - spec/dummy/config/initializers/mime_types.rb
150
+ - spec/dummy/config/initializers/session_store.rb
151
+ - spec/dummy/config/initializers/wrap_parameters.rb
152
+ - spec/dummy/config/locales/en.yml
153
+ - spec/dummy/config/routes.rb
154
+ - spec/dummy/config/secrets.yml
155
+ - spec/dummy/db/schema.rb
156
+ - spec/dummy/public/404.html
157
+ - spec/dummy/public/422.html
158
+ - spec/dummy/public/500.html
159
+ - spec/dummy/public/favicon.ico
160
+ - spec/factories.rb
161
+ - spec/models/homesteading/license_spec.rb
162
+ - spec/models/homesteading/post_spec.rb
163
+ - spec/models/homesteading/settings_spec.rb
164
+ - spec/rails_helper.rb
165
+ - spec/spec_helper.rb
166
+ - spec/support/homesteading/models/post.rb
117
167
  homepage: https://github.com/homesteading/homesteading_publisher
118
168
  licenses:
119
169
  - Public Domain (CC0)
@@ -140,40 +190,45 @@ specification_version: 4
140
190
  summary: A generic Rails Engine that all HS-* post type publisher apps build on top
141
191
  of.
142
192
  test_files:
143
- - test/dummy/app/assets/javascripts/application.js
144
- - test/dummy/app/assets/stylesheets/application.css
145
- - test/dummy/app/controllers/application_controller.rb
146
- - test/dummy/app/helpers/application_helper.rb
147
- - test/dummy/app/views/layouts/application.html.erb
148
- - test/dummy/bin/bundle
149
- - test/dummy/bin/rails
150
- - test/dummy/bin/rake
151
- - test/dummy/bin/setup
152
- - test/dummy/config/application.rb
153
- - test/dummy/config/boot.rb
154
- - test/dummy/config/database.yml
155
- - test/dummy/config/environment.rb
156
- - test/dummy/config/environments/development.rb
157
- - test/dummy/config/environments/production.rb
158
- - test/dummy/config/environments/test.rb
159
- - test/dummy/config/initializers/assets.rb
160
- - test/dummy/config/initializers/backtrace_silencers.rb
161
- - test/dummy/config/initializers/cookies_serializer.rb
162
- - test/dummy/config/initializers/filter_parameter_logging.rb
163
- - test/dummy/config/initializers/inflections.rb
164
- - test/dummy/config/initializers/mime_types.rb
165
- - test/dummy/config/initializers/session_store.rb
166
- - test/dummy/config/initializers/wrap_parameters.rb
167
- - test/dummy/config/locales/en.yml
168
- - test/dummy/config/routes.rb
169
- - test/dummy/config/secrets.yml
170
- - test/dummy/config.ru
171
- - test/dummy/public/404.html
172
- - test/dummy/public/422.html
173
- - test/dummy/public/500.html
174
- - test/dummy/public/favicon.ico
175
- - test/dummy/Rakefile
176
- - test/dummy/README.rdoc
177
- - test/homesteading_publisher_test.rb
178
- - test/integration/navigation_test.rb
179
- - test/test_helper.rb
193
+ - spec/dummy/app/assets/javascripts/application.js
194
+ - spec/dummy/app/assets/stylesheets/application.css
195
+ - spec/dummy/app/controllers/application_controller.rb
196
+ - spec/dummy/app/helpers/application_helper.rb
197
+ - spec/dummy/app/views/layouts/application.html.erb
198
+ - spec/dummy/bin/bundle
199
+ - spec/dummy/bin/rails
200
+ - spec/dummy/bin/rake
201
+ - spec/dummy/bin/setup
202
+ - spec/dummy/config/application.rb
203
+ - spec/dummy/config/boot.rb
204
+ - spec/dummy/config/database.yml
205
+ - spec/dummy/config/environment.rb
206
+ - spec/dummy/config/environments/development.rb
207
+ - spec/dummy/config/environments/production.rb
208
+ - spec/dummy/config/environments/test.rb
209
+ - spec/dummy/config/initializers/assets.rb
210
+ - spec/dummy/config/initializers/backtrace_silencers.rb
211
+ - spec/dummy/config/initializers/cookies_serializer.rb
212
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
213
+ - spec/dummy/config/initializers/inflections.rb
214
+ - spec/dummy/config/initializers/mime_types.rb
215
+ - spec/dummy/config/initializers/session_store.rb
216
+ - spec/dummy/config/initializers/wrap_parameters.rb
217
+ - spec/dummy/config/locales/en.yml
218
+ - spec/dummy/config/routes.rb
219
+ - spec/dummy/config/secrets.yml
220
+ - spec/dummy/config.ru
221
+ - spec/dummy/db/schema.rb
222
+ - spec/dummy/public/404.html
223
+ - spec/dummy/public/422.html
224
+ - spec/dummy/public/500.html
225
+ - spec/dummy/public/favicon.ico
226
+ - spec/dummy/Rakefile
227
+ - spec/dummy/README.rdoc
228
+ - spec/factories.rb
229
+ - spec/models/homesteading/license_spec.rb
230
+ - spec/models/homesteading/post_spec.rb
231
+ - spec/models/homesteading/settings_spec.rb
232
+ - spec/rails_helper.rb
233
+ - spec/spec_helper.rb
234
+ - spec/support/homesteading/models/post.rb
@@ -1,7 +0,0 @@
1
- require 'test_helper'
2
-
3
- class HomesteadingPublisherTest < ActiveSupport::TestCase
4
- test "truth" do
5
- assert_kind_of Module, HomesteadingPublisher
6
- end
7
- end
@@ -1,10 +0,0 @@
1
- require 'test_helper'
2
-
3
- class NavigationTest < ActionDispatch::IntegrationTest
4
- fixtures :all
5
-
6
- # test "the truth" do
7
- # assert true
8
- # end
9
- end
10
-
data/test/test_helper.rb DELETED
@@ -1,19 +0,0 @@
1
- # Configure Rails Environment
2
- ENV["RAILS_ENV"] = "test"
3
-
4
- require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
5
- ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
6
- ActiveRecord::Migrator.migrations_paths << File.expand_path('../../db/migrate', __FILE__)
7
- require "rails/test_help"
8
-
9
- # Filter out Minitest backtrace while allowing backtrace from other libraries
10
- # to be shown.
11
- Minitest.backtrace_filter = Minitest::BacktraceFilter.new
12
-
13
- # Load support files
14
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
15
-
16
- # Load fixtures from the engine
17
- if ActiveSupport::TestCase.respond_to?(:fixture_path=)
18
- ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
19
- end