Skip to content

Commit 2305a9d

Browse files
committed
style: title・published_atセクションのインデントを調整
1 parent 3cb6d0d commit 2305a9d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

spec/models/news_spec.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66

77
describe 'title' do
88
it 'タイトルが空の場合は無効になる' do
9-
news.title = nil
10-
expect(news).not_to be_valid
11-
expect(news.errors[:title]).not_to be_empty
9+
news.title = nil
10+
expect(news).not_to be_valid
11+
expect(news.errors[:title]).not_to be_empty
1212
end
1313

1414
it 'タイトルが正しく設定されている場合は有効になる' do
15-
news.title = '有効なタイトル'
16-
expect(news).to be_valid
15+
news.title = '有効なタイトル'
16+
expect(news).to be_valid
1717
end
1818
end
1919

@@ -54,14 +54,14 @@
5454

5555
describe 'published_at' do
5656
it '公開日時が空の場合は無効になる' do
57-
news.published_at = nil
58-
expect(news).not_to be_valid
59-
expect(news.errors[:published_at]).not_to be_empty
57+
news.published_at = nil
58+
expect(news).not_to be_valid
59+
expect(news.errors[:published_at]).not_to be_empty
6060
end
6161

6262
it '公開日時が正しく設定されている場合は有効になる' do
63-
news.published_at = Time.current
64-
expect(news).to be_valid
63+
news.published_at = Time.current
64+
expect(news).to be_valid
6565
end
6666
end
6767
end

0 commit comments

Comments
 (0)