simple_calendar 3.0.1 → 3.0.3

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.
@@ -15,6 +15,7 @@ class CustomCalendarIntegrationTest < ActionDispatch::IntegrationTest
15
15
 
16
16
  test "calendar render two day events" do
17
17
  event = meetings(:two_day_event)
18
+ event.update(start_time: Time.current.monday, end_time: (Time.current.monday + 1.day).end_of_day)
18
19
  get business_week_meetings_path, params: {start_date: event.start_time.to_date}
19
20
  assert_select "div.simple-calendar" do
20
21
  assert_select "div", text: event.name, count: 2
@@ -23,6 +24,7 @@ class CustomCalendarIntegrationTest < ActionDispatch::IntegrationTest
23
24
 
24
25
  test "calendar render three day events" do
25
26
  event = meetings(:three_day_event)
27
+ event.update(start_time: Time.current.monday, end_time: (Time.current.monday + 2.days).end_of_day)
26
28
  get business_week_meetings_path, params: {start_date: event.start_time.to_date}
27
29
  assert_select "div.simple-calendar" do
28
30
  assert_select "div", text: event.name, count: 3
data/test/test_helper.rb CHANGED
@@ -6,9 +6,12 @@ ActiveRecord::Migrator.migrations_paths = [File.expand_path("../test/dummy/db/mi
6
6
  require "rails/test_help"
7
7
 
8
8
  # Load fixtures from the engine
9
- if ActiveSupport::TestCase.respond_to?(:fixture_path=)
10
- ActiveSupport::TestCase.fixture_path = File.expand_path("fixtures", __dir__)
9
+ if ActiveSupport::TestCase.respond_to?(:fixture_paths=)
10
+ ActiveSupport::TestCase.fixture_paths << File.expand_path("../fixtures", __FILE__)
11
+ ActionDispatch::IntegrationTest.fixture_paths << File.expand_path("../fixtures", __FILE__)
12
+ elsif ActiveSupport::TestCase.respond_to?(:fixture_path=)
13
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
11
14
  ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path
12
- ActiveSupport::TestCase.file_fixture_path = ActiveSupport::TestCase.fixture_path + "/files"
13
- ActiveSupport::TestCase.fixtures :all
14
15
  end
16
+
17
+ ActiveSupport::TestCase.fixtures :all
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_calendar
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Oliver
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-08 00:00:00.000000000 Z
11
+ date: 2024-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -33,8 +33,10 @@ extra_rdoc_files: []
33
33
  files:
34
34
  - ".github/FUNDING.yml"
35
35
  - ".github/workflows/ci.yml"
36
+ - ".github/workflows/publish_gem.yml"
36
37
  - ".gitignore"
37
38
  - ".rspec"
39
+ - ".standard.yml"
38
40
  - Appraisals
39
41
  - CHANGELOG.md
40
42
  - Gemfile
@@ -54,6 +56,8 @@ files:
54
56
  - gemfiles/rails_6_1.gemfile.lock
55
57
  - gemfiles/rails_7_0.gemfile
56
58
  - gemfiles/rails_7_0.gemfile.lock
59
+ - gemfiles/rails_7_1.gemfile
60
+ - gemfiles/rails_7_1.gemfile.lock
57
61
  - gemfiles/rails_main.gemfile
58
62
  - gemfiles/rails_main.gemfile.lock
59
63
  - lib/generators/simple_calendar/views_generator.rb
@@ -134,7 +138,7 @@ homepage: https://github.com/excid3/simple_calendar
134
138
  licenses:
135
139
  - MIT
136
140
  metadata: {}
137
- post_install_message:
141
+ post_install_message:
138
142
  rdoc_options: []
139
143
  require_paths:
140
144
  - lib
@@ -149,8 +153,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
153
  - !ruby/object:Gem::Version
150
154
  version: '0'
151
155
  requirements: []
152
- rubygems_version: 3.4.17
153
- signing_key:
156
+ rubygems_version: 3.5.3
157
+ signing_key:
154
158
  specification_version: 4
155
159
  summary: A simple Rails calendar
156
160
  test_files: []