Sha256: 59ab278e27528596ebffae58464b8a2f569580c80d504bf8a0fc8ba1b36e8c9f
Contents?: true
Size: 1.05 KB
Versions: 18
Compression:
Stored size: 1.05 KB
Contents
require 'spec_helper' describe SettingsController do include SocialStream::TestHelpers render_views before do @user = Factory(:user) @actor = @user.actor sign_in @user end it "should render index" do get :index assert_response :success end it "should render index after update_all" do put :update_all response.should redirect_to settings_path end describe "Notification settings" do it "update notification email settings to Never" do @actor.update_attributes(:notify_by_email => true) @actor.notify_by_email.should==true put :update_all, :settings_section => "notifications", :notify_by_email => "never" @actor.reload @actor.notify_by_email.should==false end it "update notification email settings to Always" do @actor.update_attributes(:notify_by_email => false) @actor.notify_by_email.should==false put :update_all, :settings_section => "notifications", :notify_by_email => "always" @actor.reload @actor.notify_by_email.should==true end end end
Version data entries
18 entries across 18 versions & 2 rubygems