diff --git a/app/assets/javascripts/discourse/models/action_summary.js b/app/assets/javascripts/discourse/models/action_summary.js index 66ae696d40..b85d34f55d 100644 --- a/app/assets/javascripts/discourse/models/action_summary.js +++ b/app/assets/javascripts/discourse/models/action_summary.js @@ -45,7 +45,7 @@ Discourse.ActionSummary = Discourse.Model.extend({ this.set('can_act', false); this.set('can_undo', true); - if(action === 'notify_moderators' || action=='notify_user') { + if(action === 'notify_moderators' || action === 'notify_user') { this.set('can_undo',false); this.set('can_clear_flags',false); } diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 212dff91f7..1ea30dc442 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -45,7 +45,7 @@ Spork.prefork do load "#{Rails.root}/db/seeds.rb" RSpec.configure do |config| - + config.fail_fast = ENV['RSPEC_FAIL_FAST'] == "1" config.include Helpers config.mock_framework = :mocha