with valid attributes" do! user = User.create(name: "Jane")! ! expect(user).to be_persisted! end! ! it "does not persist if attributes are not valid" do! user = User.create! ! expect(user).not_to be_persisted! expect(user.errors[:name]).to include("can't be blank")! end! end! end!