pointless_feedback 4.0.5 → 4.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +20 -3
- data/app/controllers/pointless_feedback/messages_controller.rb +4 -8
- data/app/models/pointless_feedback/message.rb +26 -4
- data/lib/generators/templates/pointless_feedback.rb +27 -5
- data/lib/pointless_feedback.rb +11 -0
- data/lib/pointless_feedback/version.rb +1 -1
- data/test/dummy/db/schema.rb +1 -1
- data/test/dummy/log/test.log +0 -615
- metadata +58 -88
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +0 -17
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/-0oOwaALeN2C6U2Lf4oQBJ1nh5wDYXlsJ8z4xPZEEx4.cache +0 -1
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/-MBjaCcvFm8P6ZUM7imSwTGiu9H1VUHiJ8jz_laxfvU.cache +0 -1
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/4ijpxiCY5FX0eKhBIlhP8S8RwNcgw4mohmV5R3-NO-0.cache +0 -2
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/ATjMcxF2YTj1CAeKJ6gTThZZENlGNqkQFdTeNQq8LCo.cache +0 -1
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/AgZuni2-KlpBwiFEgCnZ1tGJMlmS2aVsrHKOANrfZPQ.cache +0 -1
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/DuX1XpKk4ddK37cVjPSNPfsdeHIBFuGV2QwkG8QEtY4.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/FEIeBqp48l8RmXoaFSdMLcJNdAptwSCUvV-ZrgqsRHM.cache +0 -1
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/JQXfX9DLVvW1478_BbTIZwPwA4U6dL7wjdKFsglI47Y.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/MxboiphF1c1dXcdIWTcLrOYRbtgxSvyCX_fSqp9UQvg.cache +0 -3
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/QPssSaELa26pwc44Sm9nFm913gm1r37I5p_Y3SnuKBQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/RTsh6942GI0NgjZ_BtihrdXs8sifqNM9je7uwf-aIG4.cache +0 -1
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/VjtzqkJ9e7a5RGc9vvNJ5QVLBUTMVxENYm-R3aloVSE.cache +0 -1
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/YSchFNkol6mCLBDGv-HIyHiYnL3vm0YXMF5WTV-bI2c.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/YdsSyatfxEtry8QdwIqng3FOoLhJ_g7EYa337Rvx5MQ.cache +0 -2
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/ae5GoXFVrXWkGcXYAgbdq0n-5WHDHdISjoQZAYiR6zc.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/awffKk8tIPRATKwldsJ6KMqoj5EAf8UlF3BH1UOdt3k.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/bgJtAH0m7pcdU1xGydIj3JdvFbgwHTgKNX74DaCxumI.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/hE63J2NAufW642gX0eiJ7sS2ioeDfSUNk5oNFyx-nOQ.cache +0 -2
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/klW_6aLa_0CKZE63Nz8gA1OQiSPdOyTsNno3BtRhrmk.cache +0 -1
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/mGhWF1tGFj0NQIvR3YkJVz6RCwE7N8jwgJYtDD2ENwg.cache +0 -1
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/nWPzDIv2bDw7bxzPwEncUtGw5qeqvRvIAYOeAGAZ59Q.cache +0 -1
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/vuKUU3-bLo_9wiVP3Iqy9U7t0bzvjHVb7ZMm-Jv55-Q.cache +0 -2
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/x6q8nmoqMUuvK7gPeQgOHxaZT60OXsj4apC0vSWbLvg.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/xkwz-k3Fwdid3t8oAAJXneZXZFjiBOx-4DwAVCxUTdk.cache +0 -2
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/yNbc-nHQpJY8qwtFU3XAzCcsh235SqNdfYikQDhvcPc.cache +0 -1
- data/test/tmp/app/views/pointless_feedback/messages/new.html.erb +0 -67
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 54626c7b8e32fc026a57ce137885229b2db6f4c7b13021e06a9d34f891f505fe
|
4
|
+
data.tar.gz: 7a5e53932740a35c7584b4f6e3f3df3ed4a72cb5e6fe652fbded05e608858086
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6b1bddd5ffeebdab8054d1154d7e4f6b1e3ab85c26e390472aa8b4e2f1a3b87d32e74694de9123000db34f45b559174f568a87aff53bdc16921bf5c46d5dfbb
|
7
|
+
data.tar.gz: cae7b556e5f2dfba46f77e02ae817f8d2213b9bece2e51ee77a316cd4b93f6bfd70203a80fd631a121497c121fcd9a9d091bc17f91ee44e6746f1258c82e96cb
|
data/README.md
CHANGED
@@ -72,12 +72,14 @@ feedback form that users can submit.
|
|
72
72
|
|
73
73
|
There are a number of configuration variables you can set in the initializer generated by `rails generate pointless_feedback:install`
|
74
74
|
|
75
|
-
|
76
|
-
Defaults to `['Error on page', 'Other']`. Populates the "Topic" dropdown for feedback submissions.
|
75
|
+
#### Email Configuration
|
77
76
|
|
78
77
|
**email_feedback:**
|
79
78
|
Defaults to `false`. If set to `true` will send feedback as an email.
|
80
79
|
|
80
|
+
**message_topics:**
|
81
|
+
Defaults to `['Error on page', 'Other']`. Populates the "Topic" dropdown for feedback submissions.
|
82
|
+
|
81
83
|
**send_from_submitter:**
|
82
84
|
Defaults to `false`. If set to `true` will use the submitted email address as the from address for feedback emails.
|
83
85
|
|
@@ -90,6 +92,22 @@ Specifies what address the feedback email is sent from.
|
|
90
92
|
**table_name:**
|
91
93
|
Defaults to engine's namespace, e.g. `pointless_feedback_messages`. Change to any desired table for `PointlessFeedback::Message` model.
|
92
94
|
|
95
|
+
**google_captcha_site_key & google_captcha_secret_key:**
|
96
|
+
If you'd like to block out the robots, set up a Google Captcha instance:
|
97
|
+
|
98
|
+
Do so here - http://www.google.com/recaptcha/admin. Be sure to configure it with the reCAPTCHA v2 `"I'm not a robot" Checkbox`. Then copy the site_key and secret_key into these config variables and PointlessFeedback will handle the rest!
|
99
|
+
|
100
|
+
#### Airtable Configuration
|
101
|
+
|
102
|
+
**airtable_api_key:**
|
103
|
+
Self explanatory, required if you want to export submitted feedback contents into an Airtable database.
|
104
|
+
|
105
|
+
**airtable_app_key:**
|
106
|
+
Self explanatory
|
107
|
+
|
108
|
+
**airtable_table_name:**
|
109
|
+
Self explanatory
|
110
|
+
|
93
111
|
## Customization
|
94
112
|
|
95
113
|
Pointless Feedback provides you with a simple setup that should cover most
|
@@ -159,7 +177,6 @@ to customize your redirect hook.
|
|
159
177
|
|
160
178
|
## Roadmap
|
161
179
|
|
162
|
-
- [ ] Add service to send to Unfuddle
|
163
180
|
- [ ] Add service to send to Github
|
164
181
|
- [ ] Add admin view for messages with comments
|
165
182
|
|
@@ -9,15 +9,11 @@ module PointlessFeedback
|
|
9
9
|
def create
|
10
10
|
@message = Message.new(message_params)
|
11
11
|
|
12
|
-
if pass_captcha?
|
13
|
-
|
14
|
-
|
15
|
-
:default => 'Thanks for your feedback!')
|
12
|
+
if pass_captcha? && @message.save
|
13
|
+
flash[:notice] = I18n.t('pointless_feedback.messages.saved',
|
14
|
+
:default => 'Thanks for your feedback!')
|
16
15
|
|
17
|
-
|
18
|
-
else
|
19
|
-
render :new
|
20
|
-
end
|
16
|
+
redirect_to after_message_create_path
|
21
17
|
else
|
22
18
|
flash[:alert] = I18n.t('pointless_feedback.messages.invalid_captcha',
|
23
19
|
:default => 'Are you a robot? Please check the box at the bottom of the page and try again.')
|
@@ -16,11 +16,33 @@ module PointlessFeedback
|
|
16
16
|
private
|
17
17
|
|
18
18
|
def export_feedback
|
19
|
-
|
19
|
+
if PointlessFeedback.email_feedback
|
20
|
+
# Support Rails < 4.2 and >= 4.2 delivery options
|
21
|
+
mailer = FeedbackMailer.feedback(self)
|
22
|
+
mailer.respond_to?(:deliver_now) ? mailer.deliver_now : mailer.deliver
|
23
|
+
end
|
20
24
|
|
21
|
-
|
22
|
-
|
23
|
-
|
25
|
+
if PointlessFeedback.airtable_api_key
|
26
|
+
feedback_table = Airrecord.table(
|
27
|
+
PointlessFeedback.airtable_api_key,
|
28
|
+
PointlessFeedback.airtable_app_key,
|
29
|
+
PointlessFeedback.airtable_table_name
|
30
|
+
)
|
31
|
+
|
32
|
+
begin
|
33
|
+
feedback_table.create(
|
34
|
+
"Name" => name,
|
35
|
+
"Email" => email_address,
|
36
|
+
"Topic" => topic,
|
37
|
+
"Description" => description,
|
38
|
+
"Date" => created_at.strftime("%m/%d/%y")
|
39
|
+
)
|
40
|
+
rescue => e
|
41
|
+
# ignore errors in production, last thing you want is a 500
|
42
|
+
# when someone's trying to complain about your site.
|
43
|
+
raise(e) if Rails.env.development?
|
44
|
+
end
|
45
|
+
end
|
24
46
|
end
|
25
47
|
|
26
48
|
def honeypot_filled_in?
|
@@ -1,15 +1,37 @@
|
|
1
1
|
PointlessFeedback.setup do |config|
|
2
2
|
# ==> Feedback Configuration
|
3
3
|
# Configure the topics for the user to choose from on the feedback form
|
4
|
-
# config.message_topics = ['Error on page', 'Other']
|
4
|
+
# config.message_topics = ['Error on page', 'Feature Request', 'Praise', 'Other']
|
5
5
|
|
6
6
|
# ==> Email Configuration
|
7
7
|
# Configure feedback email properties (disabled by default)
|
8
8
|
# Variables needed for emailing feedback
|
9
|
-
# config.email_feedback
|
10
|
-
# config.send_from_submitter
|
11
|
-
# config.from_email
|
12
|
-
# config.to_emails
|
9
|
+
# config.email_feedback = false
|
10
|
+
# config.send_from_submitter = false
|
11
|
+
# config.from_email = 'feedback@pointlesscorp.com'
|
12
|
+
# config.to_emails = ['first@example.com', 'second@example.com']
|
13
|
+
|
14
|
+
# ==> Google reCAPTCHA Configuration
|
15
|
+
# If you'd like to enable Google reCAPTCHA,
|
16
|
+
# 1. Register your site at: https://www.google.com/recaptcha/admin
|
17
|
+
# 2. !! Ensure you opt for reCAPTCHA v2. Support for v3 is not here yet.
|
18
|
+
# 3. Grab the site and secret key and paste them here.
|
19
|
+
#
|
13
20
|
# config.google_captcha_site_key = nil
|
14
21
|
# config.google_captcha_secret_key = nil
|
22
|
+
|
23
|
+
# ==> Airtable Configuration
|
24
|
+
# If you'd like to export feedback submissions to an Airtable database,
|
25
|
+
# 1. Create an Airtable database with the following columns:
|
26
|
+
# - Name
|
27
|
+
# - Email
|
28
|
+
# - Topic
|
29
|
+
# - Description
|
30
|
+
# 2. Generate an API Key: https://airtable.com/account
|
31
|
+
# 3. Find your app key and table name: https://airtable.com/api
|
32
|
+
# 4. Fill in all these configs
|
33
|
+
#
|
34
|
+
# config.airtable_api_key = "key--------------"
|
35
|
+
# config.airtable_app_key = "app--------------"
|
36
|
+
# config.airtable_table_name = "Feedback Tracker"
|
15
37
|
end
|
data/lib/pointless_feedback.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
require "pointless_feedback/engine"
|
2
2
|
require "pointless_feedback/captcha"
|
3
3
|
require "typhoeus"
|
4
|
+
require "jquery-rails"
|
5
|
+
require "airrecord"
|
4
6
|
|
5
7
|
module PointlessFeedback
|
6
8
|
module Controllers
|
@@ -41,6 +43,15 @@ module PointlessFeedback
|
|
41
43
|
mattr_accessor :google_captcha_secret_key
|
42
44
|
@@google_captcha_secret_key = nil
|
43
45
|
|
46
|
+
mattr_accessor :airtable_api_key
|
47
|
+
@@airtable_api_key = nil
|
48
|
+
|
49
|
+
mattr_accessor :airtable_app_key
|
50
|
+
@@airtable_app_key = nil
|
51
|
+
|
52
|
+
mattr_accessor :airtable_table_name
|
53
|
+
@@airtable_table_name = nil
|
54
|
+
|
44
55
|
# Default way to setup PointlessFeedback. Run rails generate
|
45
56
|
# pointless_feedback_install to create a fresh initializer with all
|
46
57
|
# configuration values.
|
data/test/dummy/db/schema.rb
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
|
14
14
|
ActiveRecord::Schema.define(version: 20130501182659) do
|
15
15
|
|
16
|
-
create_table "pointless_feedback_messages", force:
|
16
|
+
create_table "pointless_feedback_messages", force: true do |t|
|
17
17
|
t.string "name"
|
18
18
|
t.string "email_address"
|
19
19
|
t.string "topic"
|
data/test/dummy/log/test.log
CHANGED
@@ -1,615 +0,0 @@
|
|
1
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2
|
-
[1m[35m (0.1ms)[0m begin transaction
|
3
|
-
--------------------------------------
|
4
|
-
PointlessFeedbackTest: test_0001_truth
|
5
|
-
--------------------------------------
|
6
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7
|
-
[1m[35m (0.0ms)[0m begin transaction
|
8
|
-
----------------------------------------------------------------------------------------------------
|
9
|
-
PointlessFeedback::MessageTest::validating against spam: test_0001_allows descriptions with no links
|
10
|
-
----------------------------------------------------------------------------------------------------
|
11
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12
|
-
[1m[35m (0.0ms)[0m begin transaction
|
13
|
-
-------------------------------------------------------------------------------------------------------------------
|
14
|
-
PointlessFeedback::MessageTest::validating against spam: test_0002_does not allow descriptions with 3 or more links
|
15
|
-
-------------------------------------------------------------------------------------------------------------------
|
16
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
17
|
-
[1m[35m (0.0ms)[0m begin transaction
|
18
|
-
-----------------------------------------------------------------------------------------------------------------
|
19
|
-
PointlessFeedback::ApplicationHelperTest::main app's named routes: test_0001_outputs named path from the main app
|
20
|
-
-----------------------------------------------------------------------------------------------------------------
|
21
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
22
|
-
[1m[35m (0.0ms)[0m begin transaction
|
23
|
-
----------------------------------------------------------------------------------------------------------------
|
24
|
-
PointlessFeedback::ApplicationHelperTest::main app's named routes: test_0002_outputs named url from the main app
|
25
|
-
----------------------------------------------------------------------------------------------------------------
|
26
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
27
|
-
[1m[35m (0.1ms)[0m begin transaction
|
28
|
-
---------------------------------------------------------------------------------------------------------------
|
29
|
-
PointlessFeedback::ApplicationHelperTest::main app's named routes: test_0003_raises exception with other routes
|
30
|
-
---------------------------------------------------------------------------------------------------------------
|
31
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
32
|
-
[1m[35m (0.0ms)[0m begin transaction
|
33
|
-
---------------------------------------------------------------------
|
34
|
-
InstallGeneratorTest: test_0001_Assert all files are properly created
|
35
|
-
---------------------------------------------------------------------
|
36
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
37
|
-
[1m[35m (0.0ms)[0m begin transaction
|
38
|
-
---------------------------------------------------------------------------------
|
39
|
-
FeedbackSubmissionTest::submitting feedback: test_0001_redirects to the root path
|
40
|
-
---------------------------------------------------------------------------------
|
41
|
-
Started GET "/pointless_feedback" for 127.0.0.1 at 2017-01-30 14:34:06 -0700
|
42
|
-
Processing by PointlessFeedback::MessagesController#new as HTML
|
43
|
-
Rendered /Users/efatsi/Desktop/Projects/Pointless_Corp/pointless-feedback/app/views/pointless_feedback/messages/new.html.erb within layouts/application (20.2ms)
|
44
|
-
Completed 200 OK in 232ms (Views: 232.0ms | ActiveRecord: 0.0ms)
|
45
|
-
Started POST "/pointless_feedback/messages" for 127.0.0.1 at 2017-01-30 14:34:07 -0700
|
46
|
-
Processing by PointlessFeedback::MessagesController#create as HTML
|
47
|
-
Parameters: {"utf8"=>"✓", "message"=>{"name"=>"Eli", "email_address"=>"eli@example.com", "topic"=>"Other", "description"=>"This site is awful", "contact_info"=>""}, "commit"=>"Submit"}
|
48
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
49
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "pointless_feedback_messages" ("description", "email_address", "name", "topic", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["description", "This site is awful"], ["email_address", "eli@example.com"], ["name", "Eli"], ["topic", "Other"], ["created_at", "2017-01-30 21:34:07.052644"], ["updated_at", "2017-01-30 21:34:07.052644"]]
|
50
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
51
|
-
Redirected to http://www.example.com/
|
52
|
-
Completed 302 Found in 14ms (ActiveRecord: 0.5ms)
|
53
|
-
Started GET "/" for 127.0.0.1 at 2017-01-30 14:34:07 -0700
|
54
|
-
Processing by HomeController#index as HTML
|
55
|
-
Rendered home/index.html.erb within layouts/application (0.7ms)
|
56
|
-
Completed 200 OK in 5ms (Views: 5.1ms | ActiveRecord: 0.0ms)
|
57
|
-
[1m[35m (1.5ms)[0m rollback transaction
|
58
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
59
|
-
----------------------------------------------------------------------------------
|
60
|
-
FeedbackSubmissionTest::submitting feedback: test_0002_thanks message is displayed
|
61
|
-
----------------------------------------------------------------------------------
|
62
|
-
Started GET "/pointless_feedback" for 127.0.0.1 at 2017-01-30 14:34:07 -0700
|
63
|
-
Processing by PointlessFeedback::MessagesController#new as HTML
|
64
|
-
Rendered /Users/efatsi/Desktop/Projects/Pointless_Corp/pointless-feedback/app/views/pointless_feedback/messages/new.html.erb within layouts/application (2.2ms)
|
65
|
-
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)
|
66
|
-
Started POST "/pointless_feedback/messages" for 127.0.0.1 at 2017-01-30 14:34:07 -0700
|
67
|
-
Processing by PointlessFeedback::MessagesController#create as HTML
|
68
|
-
Parameters: {"utf8"=>"✓", "message"=>{"name"=>"Eli", "email_address"=>"eli@example.com", "topic"=>"Other", "description"=>"This site is awful", "contact_info"=>""}, "commit"=>"Submit"}
|
69
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
70
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "pointless_feedback_messages" ("description", "email_address", "name", "topic", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["description", "This site is awful"], ["email_address", "eli@example.com"], ["name", "Eli"], ["topic", "Other"], ["created_at", "2017-01-30 21:34:07.119944"], ["updated_at", "2017-01-30 21:34:07.119944"]]
|
71
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
72
|
-
Redirected to http://www.example.com/
|
73
|
-
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
74
|
-
Started GET "/" for 127.0.0.1 at 2017-01-30 14:34:07 -0700
|
75
|
-
Processing by HomeController#index as HTML
|
76
|
-
Rendered home/index.html.erb within layouts/application (0.2ms)
|
77
|
-
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
|
78
|
-
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
79
|
-
[1m[35m (0.0ms)[0m begin transaction
|
80
|
-
------------------------------------------------------------------------------------------------------
|
81
|
-
PointlessFeedback::MessagesControllerTest::posting to create::with invalid params: test_0001_anonymous
|
82
|
-
------------------------------------------------------------------------------------------------------
|
83
|
-
Processing by PointlessFeedback::MessagesController#create as HTML
|
84
|
-
Parameters: {"message"=>{"name"=>""}}
|
85
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
86
|
-
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
87
|
-
Rendered /Users/efatsi/Desktop/Projects/Pointless_Corp/pointless-feedback/app/views/pointless_feedback/messages/new.html.erb within layouts/application (3.5ms)
|
88
|
-
Completed 200 OK in 9ms (Views: 4.9ms | ActiveRecord: 0.1ms)
|
89
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90
|
-
[1m[35m (0.1ms)[0m begin transaction
|
91
|
-
------------------------------------------------------------------------------------------------------
|
92
|
-
PointlessFeedback::MessagesControllerTest::posting to create::with invalid params: test_0002_anonymous
|
93
|
-
------------------------------------------------------------------------------------------------------
|
94
|
-
Processing by PointlessFeedback::MessagesController#create as HTML
|
95
|
-
Parameters: {"message"=>{"name"=>""}}
|
96
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
97
|
-
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
98
|
-
Rendered /Users/efatsi/Desktop/Projects/Pointless_Corp/pointless-feedback/app/views/pointless_feedback/messages/new.html.erb within layouts/application (3.7ms)
|
99
|
-
Completed 200 OK in 9ms (Views: 5.1ms | ActiveRecord: 0.1ms)
|
100
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
101
|
-
[1m[35m (0.0ms)[0m begin transaction
|
102
|
-
------------------------------------------------------------------------------------------------------
|
103
|
-
PointlessFeedback::MessagesControllerTest::posting to create::with invalid params: test_0003_anonymous
|
104
|
-
------------------------------------------------------------------------------------------------------
|
105
|
-
Processing by PointlessFeedback::MessagesController#create as HTML
|
106
|
-
Parameters: {"message"=>{"name"=>""}}
|
107
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
108
|
-
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
109
|
-
Rendered /Users/efatsi/Desktop/Projects/Pointless_Corp/pointless-feedback/app/views/pointless_feedback/messages/new.html.erb within layouts/application (3.9ms)
|
110
|
-
Completed 200 OK in 9ms (Views: 5.3ms | ActiveRecord: 0.1ms)
|
111
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
112
|
-
[1m[35m (0.0ms)[0m begin transaction
|
113
|
-
---------------------------------------------------------------------------------------------------------------------------------
|
114
|
-
PointlessFeedback::MessageTest::export_feedback::when PointlessFeedback.email_feedback is true: test_0001_sends mail after create
|
115
|
-
---------------------------------------------------------------------------------------------------------------------------------
|
116
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
117
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "pointless_feedback_messages" ("name", "email_address", "description", "topic", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "A Developer"], ["email_address", "developer@pointlesscorp.com"], ["description", "Site is broke"], ["topic", "Other"], ["created_at", "2017-01-30 21:34:07.169792"], ["updated_at", "2017-01-30 21:34:07.169792"]]
|
118
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
119
|
-
[1m[35m (0.4ms)[0m rollback transaction
|
120
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
121
|
-
--------------------------------------------------------------------------------------------------------------------------------------------
|
122
|
-
PointlessFeedback::MessagesControllerTest::posting to create::with valid params::with default after_message_create_path: test_0001_anonymous
|
123
|
-
--------------------------------------------------------------------------------------------------------------------------------------------
|
124
|
-
Processing by PointlessFeedback::MessagesController#create as HTML
|
125
|
-
Parameters: {"message"=>{"name"=>"Some Guy", "email_address"=>"some_guy@web.com", "topic"=>"Other", "description"=>"Yo website bork"}}
|
126
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
127
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "pointless_feedback_messages" ("description", "email_address", "name", "topic", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["description", "Yo website bork"], ["email_address", "some_guy@web.com"], ["name", "Some Guy"], ["topic", "Other"], ["created_at", "2017-01-30 21:34:07.175714"], ["updated_at", "2017-01-30 21:34:07.175714"]]
|
128
|
-
Rendered /Users/efatsi/Desktop/Projects/Pointless_Corp/pointless-feedback/app/views/pointless_feedback/feedback_mailer/feedback.html.erb (0.5ms)
|
129
|
-
|
130
|
-
PointlessFeedback::FeedbackMailer#feedback: processed outbound mail in 199.7ms
|
131
|
-
|
132
|
-
Sent mail to test1@example.com, test2@example.com (5.1ms)
|
133
|
-
Date: Mon, 30 Jan 2017 14:34:07 -0700
|
134
|
-
From: feedback@pointlesscorp.com
|
135
|
-
To: test1@example.com,
|
136
|
-
test2@example.com
|
137
|
-
Message-ID: <588fb14f5d17c_12ed93fd50103f9d8265bc@Eliass-MacBook-Pro.local.mail>
|
138
|
-
Subject: Feedback
|
139
|
-
Mime-Version: 1.0
|
140
|
-
Content-Type: text/html;
|
141
|
-
charset=UTF-8
|
142
|
-
Content-Transfer-Encoding: 7bit
|
143
|
-
|
144
|
-
You've got feedback!
|
145
|
-
|
146
|
-
<p>Name: Some Guy</p>
|
147
|
-
<p>Email Address: some_guy@web.com</p>
|
148
|
-
<p>Topic: Other</p>
|
149
|
-
<p>Description: Yo website bork</p>
|
150
|
-
|
151
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
152
|
-
Redirected to http://test.host/
|
153
|
-
Completed 302 Found in 209ms (ActiveRecord: 0.5ms)
|
154
|
-
[1m[36m (1.5ms)[0m [1mrollback transaction[0m
|
155
|
-
[1m[35m (0.1ms)[0m begin transaction
|
156
|
-
--------------------------------------------------------------------------------------------------------------------------------------------
|
157
|
-
PointlessFeedback::MessagesControllerTest::posting to create::with valid params::with default after_message_create_path: test_0002_anonymous
|
158
|
-
--------------------------------------------------------------------------------------------------------------------------------------------
|
159
|
-
Processing by PointlessFeedback::MessagesController#create as HTML
|
160
|
-
Parameters: {"message"=>{"name"=>"Some Guy", "email_address"=>"some_guy@web.com", "topic"=>"Other", "description"=>"Yo website bork"}}
|
161
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
162
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "pointless_feedback_messages" ("description", "email_address", "name", "topic", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["description", "Yo website bork"], ["email_address", "some_guy@web.com"], ["name", "Some Guy"], ["topic", "Other"], ["created_at", "2017-01-30 21:34:07.388264"], ["updated_at", "2017-01-30 21:34:07.388264"]]
|
163
|
-
Rendered /Users/efatsi/Desktop/Projects/Pointless_Corp/pointless-feedback/app/views/pointless_feedback/feedback_mailer/feedback.html.erb (0.1ms)
|
164
|
-
|
165
|
-
PointlessFeedback::FeedbackMailer#feedback: processed outbound mail in 1.1ms
|
166
|
-
|
167
|
-
Sent mail to test1@example.com, test2@example.com (1.7ms)
|
168
|
-
Date: Mon, 30 Jan 2017 14:34:07 -0700
|
169
|
-
From: feedback@pointlesscorp.com
|
170
|
-
To: test1@example.com,
|
171
|
-
test2@example.com
|
172
|
-
Message-ID: <588fb14f5f8ab_12ed93fd50103f9d826674@Eliass-MacBook-Pro.local.mail>
|
173
|
-
Subject: Feedback
|
174
|
-
Mime-Version: 1.0
|
175
|
-
Content-Type: text/html;
|
176
|
-
charset=UTF-8
|
177
|
-
Content-Transfer-Encoding: 7bit
|
178
|
-
|
179
|
-
You've got feedback!
|
180
|
-
|
181
|
-
<p>Name: Some Guy</p>
|
182
|
-
<p>Email Address: some_guy@web.com</p>
|
183
|
-
<p>Topic: Other</p>
|
184
|
-
<p>Description: Yo website bork</p>
|
185
|
-
|
186
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
187
|
-
Redirected to http://test.host/
|
188
|
-
Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
|
189
|
-
[1m[35m (0.3ms)[0m rollback transaction
|
190
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
191
|
-
--------------------------------------------------------------------------------------------------------------------------------------------
|
192
|
-
PointlessFeedback::MessagesControllerTest::posting to create::with valid params::with default after_message_create_path: test_0003_anonymous
|
193
|
-
--------------------------------------------------------------------------------------------------------------------------------------------
|
194
|
-
Processing by PointlessFeedback::MessagesController#create as HTML
|
195
|
-
Parameters: {"message"=>{"name"=>"Some Guy", "email_address"=>"some_guy@web.com", "topic"=>"Other", "description"=>"Yo website bork"}}
|
196
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
197
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "pointless_feedback_messages" ("description", "email_address", "name", "topic", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["description", "Yo website bork"], ["email_address", "some_guy@web.com"], ["name", "Some Guy"], ["topic", "Other"], ["created_at", "2017-01-30 21:34:07.395518"], ["updated_at", "2017-01-30 21:34:07.395518"]]
|
198
|
-
Rendered /Users/efatsi/Desktop/Projects/Pointless_Corp/pointless-feedback/app/views/pointless_feedback/feedback_mailer/feedback.html.erb (0.1ms)
|
199
|
-
|
200
|
-
PointlessFeedback::FeedbackMailer#feedback: processed outbound mail in 0.9ms
|
201
|
-
|
202
|
-
Sent mail to test1@example.com, test2@example.com (1.7ms)
|
203
|
-
Date: Mon, 30 Jan 2017 14:34:07 -0700
|
204
|
-
From: feedback@pointlesscorp.com
|
205
|
-
To: test1@example.com,
|
206
|
-
test2@example.com
|
207
|
-
Message-ID: <588fb14f6144f_12ed93fd50103f9d8267bf@Eliass-MacBook-Pro.local.mail>
|
208
|
-
Subject: Feedback
|
209
|
-
Mime-Version: 1.0
|
210
|
-
Content-Type: text/html;
|
211
|
-
charset=UTF-8
|
212
|
-
Content-Transfer-Encoding: 7bit
|
213
|
-
|
214
|
-
You've got feedback!
|
215
|
-
|
216
|
-
<p>Name: Some Guy</p>
|
217
|
-
<p>Email Address: some_guy@web.com</p>
|
218
|
-
<p>Topic: Other</p>
|
219
|
-
<p>Description: Yo website bork</p>
|
220
|
-
|
221
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
222
|
-
Redirected to http://test.host/
|
223
|
-
Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
|
224
|
-
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
225
|
-
[1m[35m (0.0ms)[0m begin transaction
|
226
|
-
-----------------------------------------------------------------------
|
227
|
-
MainAppRootUrlTest: test_0001_root_url link points to main_app.root_url
|
228
|
-
-----------------------------------------------------------------------
|
229
|
-
Started GET "/pointless_feedback" for 127.0.0.1 at 2017-01-30 14:34:07 -0700
|
230
|
-
Processing by PointlessFeedback::MessagesController#new as HTML
|
231
|
-
Rendered /Users/efatsi/Desktop/Projects/Pointless_Corp/pointless-feedback/app/views/pointless_feedback/messages/new.html.erb within layouts/application (1.9ms)
|
232
|
-
Completed 200 OK in 3ms (Views: 3.3ms | ActiveRecord: 0.0ms)
|
233
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
234
|
-
[1m[35m (0.1ms)[0m begin transaction
|
235
|
-
-------------------------------------------------------
|
236
|
-
PointlessFeedback::MessageTest: test_0001_requires name
|
237
|
-
-------------------------------------------------------
|
238
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239
|
-
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
240
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
241
|
-
[1m[35m (0.0ms)[0m begin transaction
|
242
|
-
----------------------------------------------------------------
|
243
|
-
PointlessFeedback::MessageTest: test_0002_requires email_address
|
244
|
-
----------------------------------------------------------------
|
245
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
246
|
-
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
247
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
248
|
-
[1m[35m (0.0ms)[0m begin transaction
|
249
|
-
--------------------------------------------------------
|
250
|
-
PointlessFeedback::MessageTest: test_0003_requires topic
|
251
|
-
--------------------------------------------------------
|
252
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253
|
-
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
254
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
255
|
-
[1m[35m (0.0ms)[0m begin transaction
|
256
|
-
--------------------------------------------------------------
|
257
|
-
PointlessFeedback::MessageTest: test_0004_requires description
|
258
|
-
--------------------------------------------------------------
|
259
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
260
|
-
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
261
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
262
|
-
[1m[35m (0.1ms)[0m begin transaction
|
263
|
-
----------------------------------------------------------------------------------------
|
264
|
-
PointlessFeedback::MessageTest::validating email: test_0001_allows a valid email address
|
265
|
-
----------------------------------------------------------------------------------------
|
266
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
267
|
-
[1m[35m (0.0ms)[0m begin transaction
|
268
|
-
-------------------------------------------------------------------------------------------------
|
269
|
-
PointlessFeedback::MessageTest::validating email: test_0002_does not allow invalid emails address
|
270
|
-
-------------------------------------------------------------------------------------------------
|
271
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
272
|
-
[1m[35m (0.0ms)[0m begin transaction
|
273
|
-
---------------------------------------------------------------
|
274
|
-
PointlessFeedback::FeedbackMailerTest: test_0001_feedback email
|
275
|
-
---------------------------------------------------------------
|
276
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
277
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "pointless_feedback_messages" ("name", "email_address", "description", "topic", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "A Developer"], ["email_address", "developer@pointlesscorp.com"], ["description", "Site is broke"], ["topic", "Other"], ["created_at", "2017-01-30 21:34:07.428028"], ["updated_at", "2017-01-30 21:34:07.428028"]]
|
278
|
-
Rendered /Users/efatsi/Desktop/Projects/Pointless_Corp/pointless-feedback/app/views/pointless_feedback/feedback_mailer/feedback.html.erb (0.1ms)
|
279
|
-
|
280
|
-
PointlessFeedback::FeedbackMailer#feedback: processed outbound mail in 0.9ms
|
281
|
-
|
282
|
-
Sent mail to to@example.com (1.7ms)
|
283
|
-
Date: Mon, 30 Jan 2017 14:34:07 -0700
|
284
|
-
From: feedback@pointlesscorp.com
|
285
|
-
To: to@example.com
|
286
|
-
Message-ID: <588fb14f692e1_12ed93fd50103f9d8268de@Eliass-MacBook-Pro.local.mail>
|
287
|
-
Subject: Feedback
|
288
|
-
Mime-Version: 1.0
|
289
|
-
Content-Type: text/html;
|
290
|
-
charset=UTF-8
|
291
|
-
Content-Transfer-Encoding: 7bit
|
292
|
-
|
293
|
-
You've got feedback!
|
294
|
-
|
295
|
-
<p>Name: A Developer</p>
|
296
|
-
<p>Email Address: developer@pointlesscorp.com</p>
|
297
|
-
<p>Topic: Other</p>
|
298
|
-
<p>Description: Site is broke</p>
|
299
|
-
|
300
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
301
|
-
Rendered /Users/efatsi/Desktop/Projects/Pointless_Corp/pointless-feedback/app/views/pointless_feedback/feedback_mailer/feedback.html.erb (0.0ms)
|
302
|
-
|
303
|
-
PointlessFeedback::FeedbackMailer#feedback: processed outbound mail in 0.8ms
|
304
|
-
[1m[35m (0.4ms)[0m rollback transaction
|
305
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
306
|
-
--------------------------------------------------------------------
|
307
|
-
PointlessFeedback::FeedbackMailerTest: test_0002_feedback email body
|
308
|
-
--------------------------------------------------------------------
|
309
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
310
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "pointless_feedback_messages" ("name", "email_address", "description", "topic", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "A Developer"], ["email_address", "developer@pointlesscorp.com"], ["description", "Site is broke"], ["topic", "Other"], ["created_at", "2017-01-30 21:34:07.435117"], ["updated_at", "2017-01-30 21:34:07.435117"]]
|
311
|
-
Rendered /Users/efatsi/Desktop/Projects/Pointless_Corp/pointless-feedback/app/views/pointless_feedback/feedback_mailer/feedback.html.erb (0.0ms)
|
312
|
-
|
313
|
-
PointlessFeedback::FeedbackMailer#feedback: processed outbound mail in 0.8ms
|
314
|
-
|
315
|
-
Sent mail to to@example.com (1.5ms)
|
316
|
-
Date: Mon, 30 Jan 2017 14:34:07 -0700
|
317
|
-
From: feedback@pointlesscorp.com
|
318
|
-
To: to@example.com
|
319
|
-
Message-ID: <588fb14f6acf7_12ed93fd50103f9d826985@Eliass-MacBook-Pro.local.mail>
|
320
|
-
Subject: Feedback
|
321
|
-
Mime-Version: 1.0
|
322
|
-
Content-Type: text/html;
|
323
|
-
charset=UTF-8
|
324
|
-
Content-Transfer-Encoding: 7bit
|
325
|
-
|
326
|
-
You've got feedback!
|
327
|
-
|
328
|
-
<p>Name: A Developer</p>
|
329
|
-
<p>Email Address: developer@pointlesscorp.com</p>
|
330
|
-
<p>Topic: Other</p>
|
331
|
-
<p>Description: Site is broke</p>
|
332
|
-
|
333
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
334
|
-
Rendered /Users/efatsi/Desktop/Projects/Pointless_Corp/pointless-feedback/app/views/pointless_feedback/feedback_mailer/feedback.html.erb (0.0ms)
|
335
|
-
|
336
|
-
PointlessFeedback::FeedbackMailer#feedback: processed outbound mail in 0.7ms
|
337
|
-
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
338
|
-
[1m[35m (0.0ms)[0m begin transaction
|
339
|
-
-----------------------------------------------------------------------------
|
340
|
-
PointlessFeedback::FeedbackMailerTest: test_0003_feedback from email when set
|
341
|
-
-----------------------------------------------------------------------------
|
342
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
343
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "pointless_feedback_messages" ("name", "email_address", "description", "topic", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "A Developer"], ["email_address", "developer@pointlesscorp.com"], ["description", "Site is broke"], ["topic", "Other"], ["created_at", "2017-01-30 21:34:07.441476"], ["updated_at", "2017-01-30 21:34:07.441476"]]
|
344
|
-
Rendered /Users/efatsi/Desktop/Projects/Pointless_Corp/pointless-feedback/app/views/pointless_feedback/feedback_mailer/feedback.html.erb (0.1ms)
|
345
|
-
|
346
|
-
PointlessFeedback::FeedbackMailer#feedback: processed outbound mail in 0.9ms
|
347
|
-
|
348
|
-
Sent mail to to@example.com (1.6ms)
|
349
|
-
Date: Mon, 30 Jan 2017 14:34:07 -0700
|
350
|
-
From: feedback@pointlesscorp.com
|
351
|
-
To: to@example.com
|
352
|
-
Message-ID: <588fb14f6c683_12ed93fd50103f9d827030@Eliass-MacBook-Pro.local.mail>
|
353
|
-
Subject: Feedback
|
354
|
-
Mime-Version: 1.0
|
355
|
-
Content-Type: text/html;
|
356
|
-
charset=UTF-8
|
357
|
-
Content-Transfer-Encoding: 7bit
|
358
|
-
|
359
|
-
You've got feedback!
|
360
|
-
|
361
|
-
<p>Name: A Developer</p>
|
362
|
-
<p>Email Address: developer@pointlesscorp.com</p>
|
363
|
-
<p>Topic: Other</p>
|
364
|
-
<p>Description: Site is broke</p>
|
365
|
-
|
366
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
367
|
-
Rendered /Users/efatsi/Desktop/Projects/Pointless_Corp/pointless-feedback/app/views/pointless_feedback/feedback_mailer/feedback.html.erb (0.0ms)
|
368
|
-
|
369
|
-
PointlessFeedback::FeedbackMailer#feedback: processed outbound mail in 0.7ms
|
370
|
-
[1m[35m (0.4ms)[0m rollback transaction
|
371
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
372
|
-
-------------------------------------------------------------------------------------------
|
373
|
-
PointlessFeedback::FeedbackMailerTest: test_0004_feedback from email when set as the sender
|
374
|
-
-------------------------------------------------------------------------------------------
|
375
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
376
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "pointless_feedback_messages" ("name", "email_address", "description", "topic", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "A Developer"], ["email_address", "developer@pointlesscorp.com"], ["description", "Site is broke"], ["topic", "Other"], ["created_at", "2017-01-30 21:34:07.448349"], ["updated_at", "2017-01-30 21:34:07.448349"]]
|
377
|
-
Rendered /Users/efatsi/Desktop/Projects/Pointless_Corp/pointless-feedback/app/views/pointless_feedback/feedback_mailer/feedback.html.erb (0.1ms)
|
378
|
-
|
379
|
-
PointlessFeedback::FeedbackMailer#feedback: processed outbound mail in 1.1ms
|
380
|
-
|
381
|
-
Sent mail to to@example.com (1.6ms)
|
382
|
-
Date: Mon, 30 Jan 2017 14:34:07 -0700
|
383
|
-
From: from@example.com
|
384
|
-
To: to@example.com
|
385
|
-
Message-ID: <588fb14f6e37c_12ed93fd50103f9d82719b@Eliass-MacBook-Pro.local.mail>
|
386
|
-
Subject: Feedback
|
387
|
-
Mime-Version: 1.0
|
388
|
-
Content-Type: text/html;
|
389
|
-
charset=UTF-8
|
390
|
-
Content-Transfer-Encoding: 7bit
|
391
|
-
|
392
|
-
You've got feedback!
|
393
|
-
|
394
|
-
<p>Name: A Developer</p>
|
395
|
-
<p>Email Address: developer@pointlesscorp.com</p>
|
396
|
-
<p>Topic: Other</p>
|
397
|
-
<p>Description: Site is broke</p>
|
398
|
-
|
399
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
400
|
-
Rendered /Users/efatsi/Desktop/Projects/Pointless_Corp/pointless-feedback/app/views/pointless_feedback/feedback_mailer/feedback.html.erb (0.0ms)
|
401
|
-
|
402
|
-
PointlessFeedback::FeedbackMailer#feedback: processed outbound mail in 0.8ms
|
403
|
-
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
404
|
-
[1m[35m (0.0ms)[0m begin transaction
|
405
|
-
-----------------------------------------------------------------------------------------
|
406
|
-
PointlessFeedback::CaptchaTest::.pass?: test_0001_returns true if Google response is true
|
407
|
-
-----------------------------------------------------------------------------------------
|
408
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
409
|
-
[1m[35m (0.0ms)[0m begin transaction
|
410
|
-
------------------------------------------------------------------------------------------
|
411
|
-
PointlessFeedback::CaptchaTest::.pass?: test_0002_returns false if Google response is true
|
412
|
-
------------------------------------------------------------------------------------------
|
413
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
414
|
-
[1m[35m (0.0ms)[0m begin transaction
|
415
|
-
-------------------------------------------------------------------------------
|
416
|
-
PointlessFeedback::MessageTest::validating topics: test_0001_allows valid topic
|
417
|
-
-------------------------------------------------------------------------------
|
418
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
419
|
-
[1m[35m (0.0ms)[0m begin transaction
|
420
|
-
-----------------------------------------------------------------------------------------
|
421
|
-
PointlessFeedback::MessageTest::validating topics: test_0002_does not allow invalid topic
|
422
|
-
-----------------------------------------------------------------------------------------
|
423
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
424
|
-
[1m[35m (0.0ms)[0m begin transaction
|
425
|
-
-------------------------------------------------------------------------------------------------------------------
|
426
|
-
FeedbackSubmissionTest::submitting feedback with the honeypot field filled in: test_0001_redirects to the root path
|
427
|
-
-------------------------------------------------------------------------------------------------------------------
|
428
|
-
Started GET "/pointless_feedback" for 127.0.0.1 at 2017-01-30 14:34:07 -0700
|
429
|
-
Processing by PointlessFeedback::MessagesController#new as HTML
|
430
|
-
Rendered /Users/efatsi/Desktop/Projects/Pointless_Corp/pointless-feedback/app/views/pointless_feedback/messages/new.html.erb within layouts/application (1.8ms)
|
431
|
-
Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)
|
432
|
-
Started POST "/pointless_feedback/messages" for 127.0.0.1 at 2017-01-30 14:34:07 -0700
|
433
|
-
Processing by PointlessFeedback::MessagesController#create as HTML
|
434
|
-
Parameters: {"utf8"=>"✓", "message"=>{"name"=>"Eli", "email_address"=>"eli@example.com", "topic"=>"Other", "description"=>"This site is awful", "contact_info"=>"I'm a spam bot!"}, "commit"=>"Submit"}
|
435
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
436
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "pointless_feedback_messages" ("description", "email_address", "name", "topic", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["description", "This site is awful"], ["email_address", "eli@example.com"], ["name", "Eli"], ["topic", "Other"], ["created_at", "2017-01-30 21:34:07.472501"], ["updated_at", "2017-01-30 21:34:07.472501"]]
|
437
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
438
|
-
Redirected to http://www.example.com/
|
439
|
-
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
440
|
-
Started GET "/" for 127.0.0.1 at 2017-01-30 14:34:07 -0700
|
441
|
-
Processing by HomeController#index as HTML
|
442
|
-
Rendered home/index.html.erb within layouts/application (0.2ms)
|
443
|
-
Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.0ms)
|
444
|
-
[1m[35m (0.4ms)[0m rollback transaction
|
445
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
446
|
-
--------------------------------------------------------------------------------------------------------------------
|
447
|
-
FeedbackSubmissionTest::submitting feedback with the honeypot field filled in: test_0002_thanks message is displayed
|
448
|
-
--------------------------------------------------------------------------------------------------------------------
|
449
|
-
Started GET "/pointless_feedback" for 127.0.0.1 at 2017-01-30 14:34:07 -0700
|
450
|
-
Processing by PointlessFeedback::MessagesController#new as HTML
|
451
|
-
Rendered /Users/efatsi/Desktop/Projects/Pointless_Corp/pointless-feedback/app/views/pointless_feedback/messages/new.html.erb within layouts/application (1.7ms)
|
452
|
-
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
|
453
|
-
Started POST "/pointless_feedback/messages" for 127.0.0.1 at 2017-01-30 14:34:07 -0700
|
454
|
-
Processing by PointlessFeedback::MessagesController#create as HTML
|
455
|
-
Parameters: {"utf8"=>"✓", "message"=>{"name"=>"Eli", "email_address"=>"eli@example.com", "topic"=>"Other", "description"=>"This site is awful", "contact_info"=>"I'm a spam bot!"}, "commit"=>"Submit"}
|
456
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
457
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "pointless_feedback_messages" ("description", "email_address", "name", "topic", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["description", "This site is awful"], ["email_address", "eli@example.com"], ["name", "Eli"], ["topic", "Other"], ["created_at", "2017-01-30 21:34:07.490636"], ["updated_at", "2017-01-30 21:34:07.490636"]]
|
458
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
459
|
-
Redirected to http://www.example.com/
|
460
|
-
Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
|
461
|
-
Started GET "/" for 127.0.0.1 at 2017-01-30 14:34:07 -0700
|
462
|
-
Processing by HomeController#index as HTML
|
463
|
-
Rendered home/index.html.erb within layouts/application (0.2ms)
|
464
|
-
Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.0ms)
|
465
|
-
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
466
|
-
[1m[35m (0.0ms)[0m begin transaction
|
467
|
-
-------------------------------------------------------------------
|
468
|
-
ViewsGeneratorTest: test_0001_Assert all views are properly created
|
469
|
-
-------------------------------------------------------------------
|
470
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
471
|
-
[1m[35m (0.1ms)[0m begin transaction
|
472
|
-
---------------------------------------------------------------------------
|
473
|
-
PointlessFeedback::MessagesControllerTest::getting new: test_0001_anonymous
|
474
|
-
---------------------------------------------------------------------------
|
475
|
-
Processing by PointlessFeedback::MessagesController#new as HTML
|
476
|
-
Rendered /Users/efatsi/Desktop/Projects/Pointless_Corp/pointless-feedback/app/views/pointless_feedback/messages/new.html.erb within layouts/application (2.2ms)
|
477
|
-
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)
|
478
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
479
|
-
[1m[35m (0.1ms)[0m begin transaction
|
480
|
-
---------------------------------------------------------------------------
|
481
|
-
PointlessFeedback::MessagesControllerTest::getting new: test_0002_anonymous
|
482
|
-
---------------------------------------------------------------------------
|
483
|
-
Processing by PointlessFeedback::MessagesController#new as HTML
|
484
|
-
Rendered /Users/efatsi/Desktop/Projects/Pointless_Corp/pointless-feedback/app/views/pointless_feedback/messages/new.html.erb within layouts/application (1.8ms)
|
485
|
-
Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)
|
486
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
487
|
-
[1m[35m (0.0ms)[0m begin transaction
|
488
|
-
---------------------------------------------------------------------------
|
489
|
-
PointlessFeedback::MessagesControllerTest::getting new: test_0003_anonymous
|
490
|
-
---------------------------------------------------------------------------
|
491
|
-
Processing by PointlessFeedback::MessagesController#new as HTML
|
492
|
-
Rendered /Users/efatsi/Desktop/Projects/Pointless_Corp/pointless-feedback/app/views/pointless_feedback/messages/new.html.erb within layouts/application (1.6ms)
|
493
|
-
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
|
494
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
495
|
-
[1m[35m (0.0ms)[0m begin transaction
|
496
|
-
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
497
|
-
PointlessFeedback::MessageTest::export_feedback::when PointlessFeedback.email_feedback is true::when the honeypot field is not nil: test_0001_does not send mail after create
|
498
|
-
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
499
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
500
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "pointless_feedback_messages" ("name", "email_address", "description", "topic", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "A Developer"], ["email_address", "developer@pointlesscorp.com"], ["description", "Site is broke"], ["topic", "Other"], ["created_at", "2017-01-30 21:34:07.517169"], ["updated_at", "2017-01-30 21:34:07.517169"]]
|
501
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
502
|
-
[1m[35m (0.3ms)[0m rollback transaction
|
503
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
504
|
-
-----------------------------------------------------------------------------------------------------------------------------------------------
|
505
|
-
PointlessFeedback::MessagesControllerTest::posting to create::with valid params::with overridden after_message_create_path: test_0001_anonymous
|
506
|
-
-----------------------------------------------------------------------------------------------------------------------------------------------
|
507
|
-
Processing by PointlessFeedback::MessagesController#create as HTML
|
508
|
-
Parameters: {"message"=>{"name"=>"Some Guy", "email_address"=>"some_guy@web.com", "topic"=>"Other", "description"=>"Yo website bork"}}
|
509
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
510
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "pointless_feedback_messages" ("description", "email_address", "name", "topic", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["description", "Yo website bork"], ["email_address", "some_guy@web.com"], ["name", "Some Guy"], ["topic", "Other"], ["created_at", "2017-01-30 21:34:07.521314"], ["updated_at", "2017-01-30 21:34:07.521314"]]
|
511
|
-
Rendered /Users/efatsi/Desktop/Projects/Pointless_Corp/pointless-feedback/app/views/pointless_feedback/feedback_mailer/feedback.html.erb (0.1ms)
|
512
|
-
|
513
|
-
PointlessFeedback::FeedbackMailer#feedback: processed outbound mail in 1.0ms
|
514
|
-
|
515
|
-
Sent mail to test1@example.com, test2@example.com (1.8ms)
|
516
|
-
Date: Mon, 30 Jan 2017 14:34:07 -0700
|
517
|
-
From: some_guy@web.com
|
518
|
-
To: test1@example.com,
|
519
|
-
test2@example.com
|
520
|
-
Message-ID: <588fb14f7feda_12ed93fd50103f9d82724f@Eliass-MacBook-Pro.local.mail>
|
521
|
-
Subject: Feedback
|
522
|
-
Mime-Version: 1.0
|
523
|
-
Content-Type: text/html;
|
524
|
-
charset=UTF-8
|
525
|
-
Content-Transfer-Encoding: 7bit
|
526
|
-
|
527
|
-
You've got feedback!
|
528
|
-
|
529
|
-
<p>Name: Some Guy</p>
|
530
|
-
<p>Email Address: some_guy@web.com</p>
|
531
|
-
<p>Topic: Other</p>
|
532
|
-
<p>Description: Yo website bork</p>
|
533
|
-
|
534
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
535
|
-
Redirected to http://test.host/dashboard
|
536
|
-
Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
|
537
|
-
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
538
|
-
[1m[35m (0.0ms)[0m begin transaction
|
539
|
-
-----------------------------------------------------------------------------------------------------------------------------------------------
|
540
|
-
PointlessFeedback::MessagesControllerTest::posting to create::with valid params::with overridden after_message_create_path: test_0002_anonymous
|
541
|
-
-----------------------------------------------------------------------------------------------------------------------------------------------
|
542
|
-
Processing by PointlessFeedback::MessagesController#create as HTML
|
543
|
-
Parameters: {"message"=>{"name"=>"Some Guy", "email_address"=>"some_guy@web.com", "topic"=>"Other", "description"=>"Yo website bork"}}
|
544
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
545
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "pointless_feedback_messages" ("description", "email_address", "name", "topic", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["description", "Yo website bork"], ["email_address", "some_guy@web.com"], ["name", "Some Guy"], ["topic", "Other"], ["created_at", "2017-01-30 21:34:07.528335"], ["updated_at", "2017-01-30 21:34:07.528335"]]
|
546
|
-
Rendered /Users/efatsi/Desktop/Projects/Pointless_Corp/pointless-feedback/app/views/pointless_feedback/feedback_mailer/feedback.html.erb (0.1ms)
|
547
|
-
|
548
|
-
PointlessFeedback::FeedbackMailer#feedback: processed outbound mail in 1.0ms
|
549
|
-
|
550
|
-
Sent mail to test1@example.com, test2@example.com (1.9ms)
|
551
|
-
Date: Mon, 30 Jan 2017 14:34:07 -0700
|
552
|
-
From: some_guy@web.com
|
553
|
-
To: test1@example.com,
|
554
|
-
test2@example.com
|
555
|
-
Message-ID: <588fb14f81b89_12ed93fd50103f9d8273c7@Eliass-MacBook-Pro.local.mail>
|
556
|
-
Subject: Feedback
|
557
|
-
Mime-Version: 1.0
|
558
|
-
Content-Type: text/html;
|
559
|
-
charset=UTF-8
|
560
|
-
Content-Transfer-Encoding: 7bit
|
561
|
-
|
562
|
-
You've got feedback!
|
563
|
-
|
564
|
-
<p>Name: Some Guy</p>
|
565
|
-
<p>Email Address: some_guy@web.com</p>
|
566
|
-
<p>Topic: Other</p>
|
567
|
-
<p>Description: Yo website bork</p>
|
568
|
-
|
569
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
570
|
-
Redirected to http://test.host/dashboard
|
571
|
-
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
|
572
|
-
[1m[35m (0.3ms)[0m rollback transaction
|
573
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
574
|
-
-----------------------------------------------------------------------------------------------------------------------------------------------
|
575
|
-
PointlessFeedback::MessagesControllerTest::posting to create::with valid params::with overridden after_message_create_path: test_0003_anonymous
|
576
|
-
-----------------------------------------------------------------------------------------------------------------------------------------------
|
577
|
-
Processing by PointlessFeedback::MessagesController#create as HTML
|
578
|
-
Parameters: {"message"=>{"name"=>"Some Guy", "email_address"=>"some_guy@web.com", "topic"=>"Other", "description"=>"Yo website bork"}}
|
579
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
580
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "pointless_feedback_messages" ("description", "email_address", "name", "topic", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["description", "Yo website bork"], ["email_address", "some_guy@web.com"], ["name", "Some Guy"], ["topic", "Other"], ["created_at", "2017-01-30 21:34:07.536118"], ["updated_at", "2017-01-30 21:34:07.536118"]]
|
581
|
-
Rendered /Users/efatsi/Desktop/Projects/Pointless_Corp/pointless-feedback/app/views/pointless_feedback/feedback_mailer/feedback.html.erb (0.1ms)
|
582
|
-
|
583
|
-
PointlessFeedback::FeedbackMailer#feedback: processed outbound mail in 0.9ms
|
584
|
-
|
585
|
-
Sent mail to test1@example.com, test2@example.com (2.0ms)
|
586
|
-
Date: Mon, 30 Jan 2017 14:34:07 -0700
|
587
|
-
From: some_guy@web.com
|
588
|
-
To: test1@example.com,
|
589
|
-
test2@example.com
|
590
|
-
Message-ID: <588fb14f8390f_12ed93fd50103f9d8274db@Eliass-MacBook-Pro.local.mail>
|
591
|
-
Subject: Feedback
|
592
|
-
Mime-Version: 1.0
|
593
|
-
Content-Type: text/html;
|
594
|
-
charset=UTF-8
|
595
|
-
Content-Transfer-Encoding: 7bit
|
596
|
-
|
597
|
-
You've got feedback!
|
598
|
-
|
599
|
-
<p>Name: Some Guy</p>
|
600
|
-
<p>Email Address: some_guy@web.com</p>
|
601
|
-
<p>Topic: Other</p>
|
602
|
-
<p>Description: Yo website bork</p>
|
603
|
-
|
604
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
605
|
-
Redirected to http://test.host/dashboard
|
606
|
-
Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
|
607
|
-
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
608
|
-
[1m[35m (0.0ms)[0m begin transaction
|
609
|
-
---------------------------------------------------------------------------------------------------------------------------------
|
610
|
-
PointlessFeedback::MessageTest::export_feedback::when PointlessFeedback.email_feedback is false: test_0001_does not send any mail
|
611
|
-
---------------------------------------------------------------------------------------------------------------------------------
|
612
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
613
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "pointless_feedback_messages" ("name", "email_address", "description", "topic", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "A Developer"], ["email_address", "developer@pointlesscorp.com"], ["description", "Site is broke"], ["topic", "Other"], ["created_at", "2017-01-30 21:34:07.542967"], ["updated_at", "2017-01-30 21:34:07.542967"]]
|
614
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
615
|
-
[1m[35m (0.2ms)[0m rollback transaction
|