spec/controllers/registration_controller_spec.rb in iugusdk-1.0.0.alpha.3 vs spec/controllers/registration_controller_spec.rb in iugusdk-1.0.0.alpha.4
- old
+ new
@@ -24,9 +24,23 @@
lambda {
post :try_first
}.should raise_error ActionController::RoutingError
end
end
-
+
+ end
+
+ context "new" do
+ context "when enable_subscription_features == true and default_subscription_name = nil " do
+ before(:each) do
+ IuguSDK::enable_subscription_features = true
+ IuguSDK::default_subscription_name = nil
+ end
+ it 'should redirect to pricing' do
+ get :new
+ response.should redirect_to pricing_index_path
+ end
+ end
+
end
end