jinda 0.7.7.3 → 0.8.0

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.
@@ -13,7 +13,7 @@ RSpec.feature "Userlogins", type: :feature do
13
13
 
14
14
  scenario "Google User Sign In" do
15
15
  visit "/auth/google_oauth2"
16
- expect(page).to have_text("My Articles")
16
+ expect(page).to have_text("Sign Out")
17
17
  end
18
18
 
19
19
 
@@ -1 +1 @@
1
- a6747a3d62d47f33fa1801293541d77b45499aae94910fa3febf6b0b53d136fac5e3e811f2275211f59d39ba077033477a8f0717459bffde0e1654237986f97e
1
+ 1b1b29c0ebe13fdb2bb00364b7a1b4f21eab332749fbcc2b8de9ed78f7ab60b7a82f8753bece3727dbaf2f86e586aa36266059a263fab6b631cf439176c5efcb
@@ -0,0 +1,28 @@
1
+ require 'test_helper'
2
+ require 'generators/jinda/config/config_generator'
3
+ require 'pry'
4
+
5
+ class ConfigGeneratorTest < Rails::Generators::TestCase
6
+ tests Jinda::Generators::ConfigGenerator
7
+ destination File.expand_path('../../tmp', __FILE__)
8
+ setup :prepare_destination
9
+
10
+ test "backup_files method moves .env file to .env-bak if it exists" do
11
+ FileUtils.touch("#{destination_root}/.env")
12
+ assert File.exist?("#{destination_root}/.env")
13
+
14
+ run_generator
15
+ refute File.exist?("#{destination_root}/.env")
16
+ binding.pry
17
+ assert File.exist?("#{destination_root}/.env-bak")
18
+ end
19
+
20
+ test "gen_image_store method creates an 'upload' directory" do
21
+ run_generator
22
+ assert File.directory?("#{destination_root}/upload")
23
+ end
24
+
25
+ # Add more tests for other methods as needed...
26
+
27
+ end
28
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jinda
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.7.3
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Prateep Kul
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2022-11-24 00:00:00.000000000 Z
12
+ date: 2024-03-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mongoid
@@ -393,7 +393,6 @@ files:
393
393
  - lib/jinda/version.rb
394
394
  - lib/jquery.validate.js
395
395
  - lib/tasks/jinda.rake
396
- - test/Gemfile
397
396
  - test/dummy/Dockerfile
398
397
  - test/dummy/Gemfile
399
398
  - test/dummy/Gemfile.lock
@@ -611,6 +610,7 @@ files:
611
610
  - test/dummy/spec/support/request_spec_helper.rb
612
611
  - test/dummy/spec/views/articles/_article.html.erb_spec.rbx
613
612
  - test/dummy/tmp/development_secret.txt
613
+ - test/integration/config_generator_test.rb
614
614
  - test/integration/navigation_test.rb
615
615
  - test/jinda_test.rb
616
616
  - test/test_helper.rb
data/test/Gemfile DELETED
@@ -1,2 +0,0 @@
1
- gem 'jinda', path: '../../../jinda'
2
- gem 'jinda_adminlte' , path: '../../../jinda_adminlte'