summaryrefslogtreecommitdiff
path: root/spec/controllers/registrations_controller_spec.rb
diff options
context:
space:
mode:
authormo k <mo@mokhan.ca>2012-05-25 19:35:51 -0600
committermo k <mo@mokhan.ca>2012-05-25 19:35:51 -0600
commitcf4f7ff7f6fbfcdcd4abad8b1493103fe6206f4f (patch)
tree0a3f0e66e7273a2c1596ec9819f6e6cfa1ccbb6d /spec/controllers/registrations_controller_spec.rb
parent26d503eab23349ee9fb90ef956dc5dd681dc7ef8 (diff)
start building specs for registration controller.
Diffstat (limited to 'spec/controllers/registrations_controller_spec.rb')
-rw-r--r--spec/controllers/registrations_controller_spec.rb16
1 files changed, 10 insertions, 6 deletions
diff --git a/spec/controllers/registrations_controller_spec.rb b/spec/controllers/registrations_controller_spec.rb
index a1b80206..be9f05fc 100644
--- a/spec/controllers/registrations_controller_spec.rb
+++ b/spec/controllers/registrations_controller_spec.rb
@@ -1,5 +1,9 @@
-#require_relative '../../app/controllers/registrations_controller'
require 'spec_helper'
+#module Devise
+ #class RegistrationsController
+
+ #end
+#end
describe RegistrationsController do
before (:each) do
@@ -7,24 +11,24 @@ describe RegistrationsController do
end
let(:user){ FactoryGirl.build(:user) }
- context "when updating a users website" do
+ context "when updating a users profile settings not including their password" do
it "should update their website" do
controller = RegistrationsController.new
- #controller.update
blah = {
:current_password =>'',
:email => '',
:facebook => '',
- :name =>'',
+ #:name =>'',
:password => '',
:password_confirmation => '',
:twitter => '',
:website => '',
}
- user.should_receive[:update_without_password].with(blah)
- put :update, :user => blah
+ #user.should_receive[:update_without_password].with(blah)
+ #controller.update
+ put :update, :user => {:hello => "mo"}
end
it "should not change their password" do