Commit c4cf2d0d

mo k <mo@mokhan.ca>
2012-11-08 03:34:25
remove call to creation#publish.
1 parent 0e5ba3c
Changed files (2)
app
spec
app/controllers/photos_controller.rb
@@ -21,7 +21,6 @@ class PhotosController < ApplicationController
 
     @photo = @creation.photos.build(attributes)
     if @photo.save
-      @creation.delay.publish
       respond_to do |format|
         format.html { render :json => [@photo.to_jq_upload].to_json, :content_type => 'text/html', :layout => false }
         format.json { render :json => [@photo.to_jq_upload].to_json }
spec/requests/logins_spec.rb
@@ -7,24 +7,21 @@ describe "Logins" do
       response.body.should include("Got an account? Login!")
     end
   end
-  
-  describe "Signup for a new user account" do
-  	it "should make a new user present a confirmation" do
-  		visit "/login"
-  		
-  		within(".form-horizontal") do
-	  		fill_in('user_name', :with => 'John Smith')
-	  		fill_in('user_city', :with => 'Calgary, Alberta, Canada')
-	  		fill_in('user_email',:with => 'test@example.com')
-			fill_in('user_password', :with => 'password')
-			fill_in('user_password_confirmation', :with => 'password')
-			click_button "submit-registration"
-		end
-
-		page.should have_content "You have signed up successfully"
-  	end
 
-  end 
+  describe "Signup for a new user account" do
+    it "should make a new user present a confirmation" do
+      visit "/login"
 
+      within(".form-horizontal") do
+        fill_in('user_name', :with => 'John Smith')
+        fill_in('user_city', :with => 'Calgary, Alberta, Canada')
+        fill_in('user_email',:with => 'test@example.com')
+        fill_in('user_password', :with => 'password')
+        fill_in('user_password_confirmation', :with => 'password')
+        click_button "submit-registration"
+      end
 
+      page.should have_content "You have signed up successfully"
+    end
+  end
 end