Skip to content

Instantly share code, notes, and snippets.

View katatsu12's full-sized avatar
🦉
Focusing

Den Zubritskiy katatsu12

🦉
Focusing
View GitHub Profile
require "rails_helper"
RSpec.describe Article, :type => :model do
it "validates title" do
article = Article.new(title: '')
article.valid?
article.errors[:title]
end
it "validates lenghr" do
require "rails_helper"
RSpec.describe Article, :type => :model do
it "Validation Error title" do
article = Article.new(title: '')
article.valid?
article.errors[:title]
end
it "Validation Error lenghr" do
@katatsu12
katatsu12 / Main.java
Created June 15, 2017 23:01
First git program
package com.company;
public class Main {
public static void main(String[] args) {
System.out.println("Привет мир!");
}
}