rspec expect...to deprecations
This commit is contained in:
parent
f6b20ada93
commit
bdc7947cd6
|
@ -49,7 +49,7 @@ describe EmailLog do
|
||||||
|
|
||||||
context "when user's email does not exist email logs" do
|
context "when user's email does not exist email logs" do
|
||||||
it "returns nil" do
|
it "returns nil" do
|
||||||
expect(user.email_logs.last_sent_email_address).should == nil
|
expect(user.email_logs.last_sent_email_address).to be_nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -24,12 +24,12 @@ describe UserProfile do
|
||||||
let(:user_profile) { Fabricate.build(:user_profile) }
|
let(:user_profile) { Fabricate.build(:user_profile) }
|
||||||
|
|
||||||
it 'is not valid without user' do
|
it 'is not valid without user' do
|
||||||
expect(user_profile.valid?).should == false
|
expect(user_profile.valid?).to be false
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'is is valid with user' do
|
it 'is is valid with user' do
|
||||||
user_profile.user = Fabricate.build(:user)
|
user_profile.user = Fabricate.build(:user)
|
||||||
expect(user_profile.valid?).should == true
|
expect(user_profile.valid?).to be true
|
||||||
end
|
end
|
||||||
|
|
||||||
it "doesn't support really long bios" do
|
it "doesn't support really long bios" do
|
||||||
|
|
|
@ -179,7 +179,7 @@ describe User do
|
||||||
expect(Post.where(id: @posts.map(&:id))).to be_empty
|
expect(Post.where(id: @posts.map(&:id))).to be_empty
|
||||||
@posts.each do |p|
|
@posts.each do |p|
|
||||||
if p.post_number == 1
|
if p.post_number == 1
|
||||||
expect(Topic.find_by(id: p.topic_id)).should == nil
|
expect(Topic.find_by(id: p.topic_id)).to be_nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -777,7 +777,7 @@ describe User do
|
||||||
expect(found_user).to eq bob
|
expect(found_user).to eq bob
|
||||||
|
|
||||||
found_user = User.find_by_username_or_email('bob1')
|
found_user = User.find_by_username_or_email('bob1')
|
||||||
expect(found_user).should == nil
|
expect(found_user).to be_nil
|
||||||
|
|
||||||
found_user = User.find_by_email('bob@Example.com')
|
found_user = User.find_by_email('bob@Example.com')
|
||||||
expect(found_user).to eq bob
|
expect(found_user).to eq bob
|
||||||
|
@ -786,7 +786,7 @@ describe User do
|
||||||
expect(found_user).to eq bob
|
expect(found_user).to eq bob
|
||||||
|
|
||||||
found_user = User.find_by_email('bob')
|
found_user = User.find_by_email('bob')
|
||||||
expect(found_user).should == nil
|
expect(found_user).to be_nil
|
||||||
|
|
||||||
found_user = User.find_by_username('bOb')
|
found_user = User.find_by_username('bOb')
|
||||||
expect(found_user).to eq bob
|
expect(found_user).to eq bob
|
||||||
|
|
Loading…
Reference in New Issue