Skip to content

Commit f065a8b

Browse files
committed
Add examples to fix pending example warning
The `SchoolProject` was added in #490, but for some reason this spec was left with only a pending example. The latter is displayed in a warning list when you run the specs and constantlt makes me think something is wrong. To avoid this, I've implemented a couple of examples to test the most obvious behaviour of the `SchoolProject` model which seems better than nothing. These examples shouldn't be taken as an endorsement of the existing behaviour of or the desired behaviour of `SchoolProject`. For example, I wonder whether it should have some validations.
1 parent ee99633 commit f065a8b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/models/school_project_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
require 'rails_helper'
44

55
RSpec.describe SchoolProject do
6-
pending "add some examples to (or delete) #{__FILE__}"
6+
it { is_expected.to belong_to(:school) }
7+
it { is_expected.to belong_to(:project) }
78
end

0 commit comments

Comments
 (0)