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.
@@ -4,5 +4,6 @@ FactoryGirl.define do
4
4
  email_address 'developer@pointlesscorp.com'
5
5
  description 'Site is broke'
6
6
  topic 'Other'
7
+ url 'https://www.viget.com/'
7
8
  end
8
9
  end
@@ -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
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-18 00:00:00.000000000 Z
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