test/unit/change_action_tests.rb in much-rails-0.2.6 vs test/unit/change_action_tests.rb in much-rails-0.2.7
- old
+ new
@@ -59,11 +59,11 @@
desc "when init"
subject{ receiver_class.new(params: {}) }
subject do
receiver_class.new(
params: {},
- current_user: nil,
+ current_session: nil,
request: nil,
)
end
setup do
@@ -85,11 +85,11 @@
class RecordErrorsWithResultExceptionTests < InitTests
desc "with record errors and a result exception"
subject do
receiver_class.new(
params: {},
- current_user: nil,
+ current_session: nil,
request: nil,
)
end
setup do
@@ -119,11 +119,11 @@
class RecordErrorsWithNoResultExceptionTests < InitTests
desc "with record errors and no result exception"
subject do
receiver_class.new(
params: {},
- current_user: nil,
+ current_session: nil,
request: nil,
)
end
setup do
@@ -150,11 +150,11 @@
class ChangeResultMethodTests < InitTests
desc "#change_result method"
subject do
receiver_class.new(
params: {},
- current_user: nil,
+ current_session: nil,
request: nil,
)
end
should "memoize and return the expected Result" do
@@ -179,11 +179,11 @@
class AnyUnextractedChangeResultValidationErrorsMethodTests < ReceiverTests
desc "#any_unextracted_change_result_validation_errors? method"
subject do
receiver_class.new(
params: {},
- current_user: nil,
+ current_session: nil,
request: nil,
)
end
let(:receiver_class) do
@@ -206,11 +206,11 @@
AnyUnextractedChangeResultValidationErrorsMethodTests
desc "with no validation errors"
subject do
receiver_class.new(
params: {},
- current_user: nil,
+ current_session: nil,
request: nil,
)
end
let(:receiver_class) do
@@ -233,10 +233,10 @@
AnyUnextractedChangeResultValidationErrorsMethodTests
desc "with validation errors"
subject do
receiver_class.new(
params: {},
- current_user: nil,
+ current_session: nil,
request: nil,
)
end
let(:receiver_class) do