pointless_feedback 4.1.4 → 4.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -0
- data/app/controllers/pointless_feedback/messages_controller.rb +2 -1
- data/app/models/pointless_feedback/message.rb +2 -1
- data/app/views/pointless_feedback/feedback_mailer/feedback.html.erb +3 -0
- data/app/views/pointless_feedback/messages/new.html.erb +7 -0
- data/db/migrate/20220518205500_add_url_to_pointless_feedback_messages.rb +5 -0
- data/lib/pointless_feedback/version.rb +1 -1
- data/lib/pointless_feedback.rb +6 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/schema.rb +2 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +18 -0
- data/test/dummy/log/test.log +1195 -0
- data/test/factories/messages.rb +1 -0
- data/test/functional/pointless_feedback/feedback_mailer_test.rb +12 -0
- metadata +3 -2
data/test/factories/messages.rb
CHANGED
@@ -23,6 +23,18 @@ module PointlessFeedback
|
|
23
23
|
assert_match "Description: #{@message.description}", @mail.body.encoded
|
24
24
|
end
|
25
25
|
|
26
|
+
test "feedback email body with URL field" do
|
27
|
+
PointlessFeedback.show_url_field = true
|
28
|
+
PointlessFeedback.url_label = "Story URL"
|
29
|
+
|
30
|
+
assert_match "You've got feedback!", @mail.body.encoded
|
31
|
+
assert_match "Name: #{@message.name}", @mail.body.encoded
|
32
|
+
assert_match "Email Address: #{@message.email_address}", @mail.body.encoded
|
33
|
+
assert_match "Topic: #{@message.topic}", @mail.body.encoded
|
34
|
+
assert_match "Description: #{@message.description}", @mail.body.encoded
|
35
|
+
assert_match "Story URL: #{@message.url}", @mail.body.encoded
|
36
|
+
end
|
37
|
+
|
26
38
|
test "feedback from email when set" do
|
27
39
|
PointlessFeedback.from_email = 'from@example.com'
|
28
40
|
@mail = FeedbackMailer.feedback(@message)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pointless_feedback
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zachary Porter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-05-
|
11
|
+
date: 2022-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -164,6 +164,7 @@ files:
|
|
164
164
|
- config/locales/en.yml
|
165
165
|
- config/routes.rb
|
166
166
|
- db/migrate/20130501182659_create_pointless_feedback_messages.rb
|
167
|
+
- db/migrate/20220518205500_add_url_to_pointless_feedback_messages.rb
|
167
168
|
- lib/generators/pointless_feedback/install_generator.rb
|
168
169
|
- lib/generators/pointless_feedback/views_generator.rb
|
169
170
|
- lib/generators/templates/pointless_feedback.rb
|