saucy 0.2.26 → 0.2.27

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.
@@ -1,6 +1,8 @@
1
1
  class ProfilesController < ApplicationController
2
2
  layout Saucy::Layouts.to_proc
3
3
 
4
+ before_filter :authenticate
5
+
4
6
  def edit
5
7
  @user = current_user
6
8
  end
@@ -5,6 +5,11 @@ describe ProfilesController, "routes" do
5
5
  it { should route(:put, "/profile").to(:action => :update) }
6
6
  end
7
7
 
8
+ describe ProfilesController, "signed out" do
9
+ it { should deny_access.on(:get, :edit) }
10
+ it { should deny_access.on(:put, :update) }
11
+ end
12
+
8
13
  describe ProfilesController, "edit", :as => :user do
9
14
  before { get :edit }
10
15
  it { should respond_with(:success) }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saucy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 35
4
+ hash: 33
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 26
10
- version: 0.2.26
9
+ - 27
10
+ version: 0.2.27
11
11
  platform: ruby
12
12
  authors:
13
13
  - thoughtbot, inc.