pointless_feedback 4.0.5 → 4.1.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.
Files changed (39) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +20 -3
  3. data/app/controllers/pointless_feedback/messages_controller.rb +4 -8
  4. data/app/models/pointless_feedback/message.rb +26 -4
  5. data/lib/generators/templates/pointless_feedback.rb +27 -5
  6. data/lib/pointless_feedback.rb +11 -0
  7. data/lib/pointless_feedback/version.rb +1 -1
  8. data/test/dummy/db/schema.rb +1 -1
  9. data/test/dummy/log/test.log +0 -615
  10. metadata +58 -88
  11. data/test/dummy/db/development.sqlite3 +0 -0
  12. data/test/dummy/db/test.sqlite3 +0 -0
  13. data/test/dummy/log/development.log +0 -17
  14. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/-0oOwaALeN2C6U2Lf4oQBJ1nh5wDYXlsJ8z4xPZEEx4.cache +0 -1
  15. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/-MBjaCcvFm8P6ZUM7imSwTGiu9H1VUHiJ8jz_laxfvU.cache +0 -1
  16. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/4ijpxiCY5FX0eKhBIlhP8S8RwNcgw4mohmV5R3-NO-0.cache +0 -2
  17. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/ATjMcxF2YTj1CAeKJ6gTThZZENlGNqkQFdTeNQq8LCo.cache +0 -1
  18. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/AgZuni2-KlpBwiFEgCnZ1tGJMlmS2aVsrHKOANrfZPQ.cache +0 -1
  19. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/DuX1XpKk4ddK37cVjPSNPfsdeHIBFuGV2QwkG8QEtY4.cache +0 -0
  20. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/FEIeBqp48l8RmXoaFSdMLcJNdAptwSCUvV-ZrgqsRHM.cache +0 -1
  21. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/JQXfX9DLVvW1478_BbTIZwPwA4U6dL7wjdKFsglI47Y.cache +0 -0
  22. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/MxboiphF1c1dXcdIWTcLrOYRbtgxSvyCX_fSqp9UQvg.cache +0 -3
  23. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/QPssSaELa26pwc44Sm9nFm913gm1r37I5p_Y3SnuKBQ.cache +0 -0
  24. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/RTsh6942GI0NgjZ_BtihrdXs8sifqNM9je7uwf-aIG4.cache +0 -1
  25. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/VjtzqkJ9e7a5RGc9vvNJ5QVLBUTMVxENYm-R3aloVSE.cache +0 -1
  26. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/YSchFNkol6mCLBDGv-HIyHiYnL3vm0YXMF5WTV-bI2c.cache +0 -0
  27. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/YdsSyatfxEtry8QdwIqng3FOoLhJ_g7EYa337Rvx5MQ.cache +0 -2
  28. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/ae5GoXFVrXWkGcXYAgbdq0n-5WHDHdISjoQZAYiR6zc.cache +0 -0
  29. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/awffKk8tIPRATKwldsJ6KMqoj5EAf8UlF3BH1UOdt3k.cache +0 -0
  30. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/bgJtAH0m7pcdU1xGydIj3JdvFbgwHTgKNX74DaCxumI.cache +0 -0
  31. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/hE63J2NAufW642gX0eiJ7sS2ioeDfSUNk5oNFyx-nOQ.cache +0 -2
  32. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/klW_6aLa_0CKZE63Nz8gA1OQiSPdOyTsNno3BtRhrmk.cache +0 -1
  33. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/mGhWF1tGFj0NQIvR3YkJVz6RCwE7N8jwgJYtDD2ENwg.cache +0 -1
  34. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/nWPzDIv2bDw7bxzPwEncUtGw5qeqvRvIAYOeAGAZ59Q.cache +0 -1
  35. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/vuKUU3-bLo_9wiVP3Iqy9U7t0bzvjHVb7ZMm-Jv55-Q.cache +0 -2
  36. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/x6q8nmoqMUuvK7gPeQgOHxaZT60OXsj4apC0vSWbLvg.cache +0 -0
  37. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/xkwz-k3Fwdid3t8oAAJXneZXZFjiBOx-4DwAVCxUTdk.cache +0 -2
  38. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/yNbc-nHQpJY8qwtFU3XAzCcsh235SqNdfYikQDhvcPc.cache +0 -1
  39. data/test/tmp/app/views/pointless_feedback/messages/new.html.erb +0 -67
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: cf34fe06437b2975462ed44bac6a6afec3856733
4
- data.tar.gz: 7abb2f5e83f2e36615f9ecf0d0cae6c93189967a
2
+ SHA256:
3
+ metadata.gz: 54626c7b8e32fc026a57ce137885229b2db6f4c7b13021e06a9d34f891f505fe
4
+ data.tar.gz: 7a5e53932740a35c7584b4f6e3f3df3ed4a72cb5e6fe652fbded05e608858086
5
5
  SHA512:
6
- metadata.gz: 79c0a10090548bccbd15a075adbeb4586f017898b0e8d760d3a566559047957299478daedbab99c3aa90f686421f7c8df1e80d3fd154c3df63711f896bfa75fa
7
- data.tar.gz: 6c97edc192c33067a92ec4b1328cfd0225e17c1c083f827fc7ee1b1e575a8995599ecd847bd91df29e602c72225826105334e7c48be0affd5b6b6dc664c036ed
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
- **message_topics:**
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
- if @message.save
14
- flash[:notice] = I18n.t('pointless_feedback.messages.saved',
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
- redirect_to after_message_create_path
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
- return unless PointlessFeedback.email_feedback
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
- # Support Rails < 4.2 and >= 4.2 delivery options
22
- mailer = FeedbackMailer.feedback(self)
23
- mailer.respond_to?(:deliver_now) ? mailer.deliver_now : mailer.deliver
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 = false
10
- # config.send_from_submitter = false
11
- # config.from_email = 'feedback@pointlesscorp.com'
12
- # config.to_emails = ['first@example.com', 'second@example.com']
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
@@ -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.
@@ -1,3 +1,3 @@
1
1
  module PointlessFeedback
2
- VERSION = "4.0.5"
2
+ VERSION = "4.1.3"
3
3
  end
@@ -13,7 +13,7 @@
13
13
 
14
14
  ActiveRecord::Schema.define(version: 20130501182659) do
15
15
 
16
- create_table "pointless_feedback_messages", force: :cascade do |t|
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"
@@ -1,615 +0,0 @@
1
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2
-  (0.1ms) begin transaction
3
- --------------------------------------
4
- PointlessFeedbackTest: test_0001_truth
5
- --------------------------------------
6
-  (0.0ms) rollback transaction
7
-  (0.0ms) begin transaction
8
- ----------------------------------------------------------------------------------------------------
9
- PointlessFeedback::MessageTest::validating against spam: test_0001_allows descriptions with no links
10
- ----------------------------------------------------------------------------------------------------
11
-  (0.1ms) rollback transaction
12
-  (0.0ms) begin transaction
13
- -------------------------------------------------------------------------------------------------------------------
14
- PointlessFeedback::MessageTest::validating against spam: test_0002_does not allow descriptions with 3 or more links
15
- -------------------------------------------------------------------------------------------------------------------
16
-  (0.0ms) rollback transaction
17
-  (0.0ms) begin transaction
18
- -----------------------------------------------------------------------------------------------------------------
19
- PointlessFeedback::ApplicationHelperTest::main app's named routes: test_0001_outputs named path from the main app
20
- -----------------------------------------------------------------------------------------------------------------
21
-  (0.1ms) rollback transaction
22
-  (0.0ms) begin transaction
23
- ----------------------------------------------------------------------------------------------------------------
24
- PointlessFeedback::ApplicationHelperTest::main app's named routes: test_0002_outputs named url from the main app
25
- ----------------------------------------------------------------------------------------------------------------
26
-  (0.0ms) rollback transaction
27
-  (0.1ms) begin transaction
28
- ---------------------------------------------------------------------------------------------------------------
29
- PointlessFeedback::ApplicationHelperTest::main app's named routes: test_0003_raises exception with other routes
30
- ---------------------------------------------------------------------------------------------------------------
31
-  (0.0ms) rollback transaction
32
-  (0.0ms) begin transaction
33
- ---------------------------------------------------------------------
34
- InstallGeneratorTest: test_0001_Assert all files are properly created
35
- ---------------------------------------------------------------------
36
-  (0.1ms) rollback transaction
37
-  (0.0ms) 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
-  (0.1ms) SAVEPOINT active_record_1
49
- SQL (0.4ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
-  (1.5ms) rollback transaction
58
-  (0.0ms) begin transaction
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
-  (0.1ms) SAVEPOINT active_record_1
70
- SQL (0.3ms) 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.119944"], ["updated_at", "2017-01-30 21:34:07.119944"]]
71
-  (0.0ms) 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
-  (0.4ms) rollback transaction
79
-  (0.0ms) 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
-  (0.0ms) SAVEPOINT active_record_1
86
-  (0.0ms) 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
-  (0.0ms) rollback transaction
90
-  (0.1ms) 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
-  (0.0ms) SAVEPOINT active_record_1
97
-  (0.0ms) 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
-  (0.1ms) rollback transaction
101
-  (0.0ms) 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
-  (0.0ms) SAVEPOINT active_record_1
108
-  (0.0ms) 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
-  (0.1ms) rollback transaction
112
-  (0.0ms) begin transaction
113
- ---------------------------------------------------------------------------------------------------------------------------------
114
- PointlessFeedback::MessageTest::export_feedback::when PointlessFeedback.email_feedback is true: test_0001_sends mail after create
115
- ---------------------------------------------------------------------------------------------------------------------------------
116
-  (0.1ms) SAVEPOINT active_record_1
117
- SQL (0.3ms) 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
-  (0.1ms) RELEASE SAVEPOINT active_record_1
119
-  (0.4ms) rollback transaction
120
-  (0.1ms) begin transaction
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
-  (0.1ms) SAVEPOINT active_record_1
127
- SQL (0.3ms) 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.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
-  (0.1ms) RELEASE SAVEPOINT active_record_1
152
- Redirected to http://test.host/
153
- Completed 302 Found in 209ms (ActiveRecord: 0.5ms)
154
-  (1.5ms) rollback transaction
155
-  (0.1ms) 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
-  (0.0ms) SAVEPOINT active_record_1
162
- SQL (0.2ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
187
- Redirected to http://test.host/
188
- Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
189
-  (0.3ms) rollback transaction
190
-  (0.0ms) begin transaction
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
-  (0.0ms) SAVEPOINT active_record_1
197
- SQL (0.2ms) 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.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
-  (0.1ms) RELEASE SAVEPOINT active_record_1
222
- Redirected to http://test.host/
223
- Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
224
-  (0.3ms) rollback transaction
225
-  (0.0ms) 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
-  (0.1ms) rollback transaction
234
-  (0.1ms) begin transaction
235
- -------------------------------------------------------
236
- PointlessFeedback::MessageTest: test_0001_requires name
237
- -------------------------------------------------------
238
-  (0.0ms) SAVEPOINT active_record_1
239
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
240
-  (0.0ms) rollback transaction
241
-  (0.0ms) begin transaction
242
- ----------------------------------------------------------------
243
- PointlessFeedback::MessageTest: test_0002_requires email_address
244
- ----------------------------------------------------------------
245
-  (0.0ms) SAVEPOINT active_record_1
246
-  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
247
-  (0.0ms) rollback transaction
248
-  (0.0ms) begin transaction
249
- --------------------------------------------------------
250
- PointlessFeedback::MessageTest: test_0003_requires topic
251
- --------------------------------------------------------
252
-  (0.0ms) SAVEPOINT active_record_1
253
-  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
254
-  (0.0ms) rollback transaction
255
-  (0.0ms) begin transaction
256
- --------------------------------------------------------------
257
- PointlessFeedback::MessageTest: test_0004_requires description
258
- --------------------------------------------------------------
259
-  (0.0ms) SAVEPOINT active_record_1
260
-  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
261
-  (0.0ms) rollback transaction
262
-  (0.1ms) begin transaction
263
- ----------------------------------------------------------------------------------------
264
- PointlessFeedback::MessageTest::validating email: test_0001_allows a valid email address
265
- ----------------------------------------------------------------------------------------
266
-  (0.0ms) rollback transaction
267
-  (0.0ms) begin transaction
268
- -------------------------------------------------------------------------------------------------
269
- PointlessFeedback::MessageTest::validating email: test_0002_does not allow invalid emails address
270
- -------------------------------------------------------------------------------------------------
271
-  (0.0ms) rollback transaction
272
-  (0.0ms) begin transaction
273
- ---------------------------------------------------------------
274
- PointlessFeedback::FeedbackMailerTest: test_0001_feedback email
275
- ---------------------------------------------------------------
276
-  (0.0ms) SAVEPOINT active_record_1
277
- SQL (0.3ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
-  (0.4ms) rollback transaction
305
-  (0.0ms) begin transaction
306
- --------------------------------------------------------------------
307
- PointlessFeedback::FeedbackMailerTest: test_0002_feedback email body
308
- --------------------------------------------------------------------
309
-  (0.0ms) SAVEPOINT active_record_1
310
- SQL (0.2ms) 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.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
-  (0.1ms) 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
-  (0.3ms) rollback transaction
338
-  (0.0ms) begin transaction
339
- -----------------------------------------------------------------------------
340
- PointlessFeedback::FeedbackMailerTest: test_0003_feedback from email when set
341
- -----------------------------------------------------------------------------
342
-  (0.0ms) SAVEPOINT active_record_1
343
- SQL (0.2ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
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
-  (0.4ms) rollback transaction
371
-  (0.0ms) begin transaction
372
- -------------------------------------------------------------------------------------------
373
- PointlessFeedback::FeedbackMailerTest: test_0004_feedback from email when set as the sender
374
- -------------------------------------------------------------------------------------------
375
-  (0.1ms) SAVEPOINT active_record_1
376
- SQL (0.3ms) 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.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
-  (0.1ms) 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
-  (0.3ms) rollback transaction
404
-  (0.0ms) begin transaction
405
- -----------------------------------------------------------------------------------------
406
- PointlessFeedback::CaptchaTest::.pass?: test_0001_returns true if Google response is true
407
- -----------------------------------------------------------------------------------------
408
-  (0.0ms) rollback transaction
409
-  (0.0ms) begin transaction
410
- ------------------------------------------------------------------------------------------
411
- PointlessFeedback::CaptchaTest::.pass?: test_0002_returns false if Google response is true
412
- ------------------------------------------------------------------------------------------
413
-  (0.0ms) rollback transaction
414
-  (0.0ms) begin transaction
415
- -------------------------------------------------------------------------------
416
- PointlessFeedback::MessageTest::validating topics: test_0001_allows valid topic
417
- -------------------------------------------------------------------------------
418
-  (0.0ms) rollback transaction
419
-  (0.0ms) begin transaction
420
- -----------------------------------------------------------------------------------------
421
- PointlessFeedback::MessageTest::validating topics: test_0002_does not allow invalid topic
422
- -----------------------------------------------------------------------------------------
423
-  (0.0ms) rollback transaction
424
-  (0.0ms) 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
-  (0.1ms) SAVEPOINT active_record_1
436
- SQL (0.3ms) 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
-  (0.1ms) RELEASE SAVEPOINT active_record_1
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
-  (0.4ms) rollback transaction
445
-  (0.0ms) begin transaction
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
-  (0.1ms) SAVEPOINT active_record_1
457
- SQL (0.3ms) 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.490636"], ["updated_at", "2017-01-30 21:34:07.490636"]]
458
-  (0.0ms) 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
-  (0.3ms) rollback transaction
466
-  (0.0ms) begin transaction
467
- -------------------------------------------------------------------
468
- ViewsGeneratorTest: test_0001_Assert all views are properly created
469
- -------------------------------------------------------------------
470
-  (0.0ms) rollback transaction
471
-  (0.1ms) 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
-  (0.1ms) rollback transaction
479
-  (0.1ms) 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
-  (0.1ms) rollback transaction
487
-  (0.0ms) 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
-  (0.0ms) rollback transaction
495
-  (0.0ms) 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
-  (0.0ms) SAVEPOINT active_record_1
500
- SQL (0.3ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
502
-  (0.3ms) rollback transaction
503
-  (0.0ms) begin transaction
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
-  (0.0ms) SAVEPOINT active_record_1
510
- SQL (0.2ms) 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.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
-  (0.1ms) RELEASE SAVEPOINT active_record_1
535
- Redirected to http://test.host/dashboard
536
- Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
537
-  (0.4ms) rollback transaction
538
-  (0.0ms) 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
-  (0.0ms) SAVEPOINT active_record_1
545
- SQL (0.3ms) 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
-  (0.1ms) RELEASE SAVEPOINT active_record_1
570
- Redirected to http://test.host/dashboard
571
- Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
572
-  (0.3ms) rollback transaction
573
-  (0.0ms) begin transaction
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
-  (0.0ms) SAVEPOINT active_record_1
580
- SQL (0.2ms) 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.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
-  (0.1ms) RELEASE SAVEPOINT active_record_1
605
- Redirected to http://test.host/dashboard
606
- Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
607
-  (0.3ms) rollback transaction
608
-  (0.0ms) begin transaction
609
- ---------------------------------------------------------------------------------------------------------------------------------
610
- PointlessFeedback::MessageTest::export_feedback::when PointlessFeedback.email_feedback is false: test_0001_does not send any mail
611
- ---------------------------------------------------------------------------------------------------------------------------------
612
-  (0.0ms) SAVEPOINT active_record_1
613
- SQL (0.2ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
615
-  (0.2ms) rollback transaction