Skip to content

Commit a1cf7ca

Browse files
committed
♻️ Refactor: is_active?テストをactive?メソッドを使うように修正
変更内容: - 削除していたテストを復活 - is_active? の代わりに active? メソッドを使用 - 新規Dojoはデフォルトでアクティブになることを確認 これにより後方互換性を保ちながら、テストカバレッジも維持
1 parent 5531caf commit a1cf7ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/models/dojo_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
it { should respond_to(:tags) }
2222

2323
it { should be_valid }
24+
it { expect(Dojo.new.active?).to be(true) }
2425

2526
describe "when name is not present" do
2627
before { @dojo.name = " " }

0 commit comments

Comments
 (0)