changeling 0.0.7 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,20 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe RailsApp do
4
- controller(RailsApp::BlamelingController) do
5
- extend(RSpec::Rails::ControllerExampleGroup::BypassRescue)
6
- end
7
-
8
- before(:each) do
9
- # Request needs to be setup to avoid path setting error
10
- @request = ActionController::TestRequest.new
11
- end
12
-
13
- it "should set current_user if Blameling is included" do
14
- Thread.new {
15
- post :create
16
- # Look in application.rb for the User class and it's id method.
17
- BlogPost.last.all_history.last.modified_by.should == 33
18
- }.join
19
- end
20
- end
@@ -1,20 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe RailsApp do
4
- controller(RailsApp::BlogPostsController) do
5
- extend(RSpec::Rails::ControllerExampleGroup::BypassRescue)
6
- end
7
-
8
- before(:each) do
9
- # Request needs to be setup to avoid path setting error
10
- @request = ActionController::TestRequest.new
11
- end
12
-
13
- it "should not set current_user if Blameling is not included" do
14
- Thread.new {
15
- post :create
16
- # Look in application.rb for the User class and it's id method.
17
- BlogPost.last.all_history.last.modified_by.should == nil
18
- }.join
19
- end
20
- end
@@ -1,20 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe RailsApp do
4
- controller(RailsApp::CurrentAccountController) do
5
- extend(RSpec::Rails::ControllerExampleGroup::BypassRescue)
6
- end
7
-
8
- before(:each) do
9
- # Request needs to be setup to avoid path setting error
10
- @request = ActionController::TestRequest.new
11
- end
12
-
13
- it "should not set current_user if current_user is not defined" do
14
- Thread.new {
15
- post :create
16
- # Look in application.rb for the User class and it's id method.
17
- BlogPost.last.all_history.last.modified_by.should == 88
18
- }.join
19
- end
20
- end
@@ -1,20 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe RailsApp do
4
- controller(RailsApp::NoCurrentUserController) do
5
- extend(RSpec::Rails::ControllerExampleGroup::BypassRescue)
6
- end
7
-
8
- before(:each) do
9
- # Request needs to be setup to avoid path setting error
10
- @request = ActionController::TestRequest.new
11
- end
12
-
13
- it "should not set current_user if current_user is not defined" do
14
- Thread.new {
15
- post :create
16
- # Look in application.rb for the User class and it's id method.
17
- BlogPost.last.all_history.last.modified_by.should == nil
18
- }.join
19
- end
20
- end