spec/models/fe/paragraph_spec.rb in fe-0.0.3 vs spec/models/fe/paragraph_spec.rb in fe-0.0.4
- old
+ new
@@ -1,17 +1,17 @@
-require 'spec_helper'
+require 'rails_helper'
describe Fe::Paragraph do
describe '#validate_presence_of :content on update' do
it 'successfully saves with content' do
paragraph = build(:paragraph)
paragraph.content = "abc"
- paragraph.save.should be_true
+ expect(paragraph.save).to eq(true)
end
it 'saves with default content' do
paragraph = build(:paragraph)
- paragraph.save.should be_true
- paragraph.content.should == "Lorem ipsum..."
+ expect(paragraph.save).to eq(true)
+ expect(paragraph.content).to eq("Lorem ipsum...")
end
end
end