This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.company; | |
public class Main { | |
public static void main(String[] args) { | |
System.out.println("Привет мир!"); | |
} | |
} |