Skip to content

Commit 4e690d7

Browse files
committed
Test fixes
1 parent a3c92b9 commit 4e690d7

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

test/fixtures/spaces.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ plants:
66
astro:
77
title: TeSS Space Community
88
host: space.mytess.training
9+
user: curator
910

1011
other:
1112
title: Other TeSS Community
1213
host: other.mytess.training
14+
user: curator

test/models/space_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class SpaceTest < ActiveSupport::TestCase
4646
test 'disabled_features rejects invalid features' do
4747
@space.disabled_features = ['invalid_feature', 'events']
4848
assert_not @space.valid?
49-
assert_includes @space.errors[:disabled_features], :inclusion
49+
assert @space.errors.added?(:disabled_features, :inclusion)
5050
end
5151

5252
test 'disabled_features allows empty strings' do

0 commit comments

Comments
 (0)