Skip to content

Commit 649056f

Browse files
committed
fixed unit tests
1 parent 6a6cf51 commit 649056f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/unit/diagram_test.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,27 +126,27 @@ def calls
126126
test "generate should filter excluded entity" do
127127
create_model "Book"
128128
create_model "Author"
129-
assert_equal [Book], retrieve_entities(:exclude => ['Author']).map(&:model)
129+
assert_equal [Book], retrieve_entities(:exclude => [:Author]).map(&:model)
130130
end
131131

132132
test "generate should filter excluded entities" do
133133
create_model "Book"
134134
create_model "Author"
135135
create_model "Editor"
136-
assert_equal [Book], retrieve_entities(:exclude => ['Author', 'Editor']).map(&:model)
136+
assert_equal [Book], retrieve_entities(:exclude => [:Author, :Editor]).map(&:model)
137137
end
138138

139139
test "generate should include only specified entity" do
140140
create_model "Book"
141141
create_model "Author"
142-
assert_equal [Book], retrieve_entities(:only => ['Book']).map(&:model)
142+
assert_equal [Book], retrieve_entities(:only => [:Book]).map(&:model)
143143
end
144144

145145
test "generate should include only specified entities" do
146146
create_model "Book"
147147
create_model "Author"
148148
create_model "Editor"
149-
assert_equal [Author, Editor], retrieve_entities(:only => ['Author', 'Editor']).map(&:model)
149+
assert_equal [Author, Editor], retrieve_entities(:only => [:Author, :Editor]).map(&:model)
150150
end
151151

152152
test "generate should filter disconnected entities if disconnected is false" do

0 commit comments

Comments
 (0)