From 7d8dd9d93b9ab034f0ba1d4c4930e333575ea320 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Thu, 26 Feb 2015 13:05:20 +0100 Subject: [PATCH] fix some rspec deprecations --- spec/components/post_revisor_spec.rb | 4 ++-- spec/controllers/users_controller_spec.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/components/post_revisor_spec.rb b/spec/components/post_revisor_spec.rb index 0c16f0f1725..8dd58424c01 100644 --- a/spec/components/post_revisor_spec.rb +++ b/spec/components/post_revisor_spec.rb @@ -51,9 +51,9 @@ describe PostRevisor do it 'allows the user to change it to a wiki' do pc = PostCreator.new(newuser, topic_id: topic.id, raw: 'this is a post that will become a wiki') post = pc.create - post.revise(post.user, wiki: true).should == true + post.revise(post.user, wiki: true).should be_truthy post.reload - post.wiki.should be_true + post.wiki.should be_truthy end end diff --git a/spec/controllers/users_controller_spec.rb b/spec/controllers/users_controller_spec.rb index 7adfb989c61..92b2d3fc63b 100644 --- a/spec/controllers/users_controller_spec.rb +++ b/spec/controllers/users_controller_spec.rb @@ -672,7 +672,7 @@ describe UsersController do user.reload.username.should == new_username end - pending 'should fail if the user is old', 'ensure_can_edit_username! is not throwing' do + skip 'should fail if the user is old', 'ensure_can_edit_username! is not throwing' do # Older than the change period and >1 post user.created_at = Time.now - (SiteSetting.username_change_period + 1).days user.stubs(:post_count).returns(200)