think_feel_do_dashboard 1.1.11 → 1.1.12

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.
@@ -30,14 +30,26 @@ end
30
30
 
31
31
  # Shared examples
32
32
 
33
- shared_examples "a rejected user action" do
33
+ RSpec.shared_examples "a rejected user action" do
34
34
  it "should redirect to the user login" do
35
35
  expect(response).to redirect_to "/users/sign_in"
36
36
  end
37
37
  end
38
38
 
39
- shared_examples "a rejected participant action" do
39
+ RSpec.shared_examples "a rejected participant action" do
40
40
  it "should redirect to the participant login" do
41
41
  expect(response).to redirect_to "/participants/sign_in"
42
42
  end
43
43
  end
44
+
45
+ RSpec.shared_examples "an untrusted action" do
46
+ it "should redirect to root path" do
47
+ expect(response.status)
48
+ .to redirect_to root_path
49
+ end
50
+
51
+ it "should redirect to root path" do
52
+ expect(flash[:alert])
53
+ .to eq "Your authenticity token expired. Please try again."
54
+ end
55
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: think_feel_do_dashboard
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.11
4
+ version: 1.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Carty-Fickes
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-02-09 00:00:00.000000000 Z
13
+ date: 2016-02-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -183,6 +183,7 @@ files:
183
183
  - app/controllers/think_feel_do_dashboard/arms_controller.rb
184
184
  - app/controllers/think_feel_do_dashboard/coach_assignments_controller.rb
185
185
  - app/controllers/think_feel_do_dashboard/concerns/browser_detective.rb
186
+ - app/controllers/think_feel_do_dashboard/concerns/invalid_auth_token.rb
186
187
  - app/controllers/think_feel_do_dashboard/groups_controller.rb
187
188
  - app/controllers/think_feel_do_dashboard/memberships_controller.rb
188
189
  - app/controllers/think_feel_do_dashboard/moderators_controller.rb
@@ -239,6 +240,7 @@ files:
239
240
  - app/views/think_feel_do_dashboard/users/index.html.erb
240
241
  - app/views/think_feel_do_dashboard/users/new.html.erb
241
242
  - app/views/think_feel_do_dashboard/users/show.html.erb
243
+ - config/brakeman.ignore
242
244
  - config/initializers/think_feel_do_dashboard.rb
243
245
  - config/locales/en.yml
244
246
  - config/routes.rb
@@ -253,6 +255,7 @@ files:
253
255
  - lib/think_feel_do_dashboard.rb
254
256
  - lib/think_feel_do_dashboard/engine.rb
255
257
  - lib/think_feel_do_dashboard/version.rb
258
+ - spec/controllers/think_feel_do_dashboard/arms_controller_spec.rb
256
259
  - spec/controllers/think_feel_do_dashboard/membership_controller_spec.rb
257
260
  - spec/controllers/think_feel_do_dashboard/moderators_controller_spec.rb
258
261
  - spec/controllers/think_feel_do_dashboard/reports_controller_spec.rb
@@ -2351,6 +2354,7 @@ signing_key:
2351
2354
  specification_version: 4
2352
2355
  summary: Provides administrational tasks.
2353
2356
  test_files:
2357
+ - spec/controllers/think_feel_do_dashboard/arms_controller_spec.rb
2354
2358
  - spec/controllers/think_feel_do_dashboard/membership_controller_spec.rb
2355
2359
  - spec/controllers/think_feel_do_dashboard/moderators_controller_spec.rb
2356
2360
  - spec/controllers/think_feel_do_dashboard/reports_controller_spec.rb