Skip to content

Commit 26af788

Browse files
committedJun 10, 2022
Update Api Blueprint spec assertions to reflect implementation
Why: Given specs fails on expecting `description` field being empty while in current version it contains capitalised version of `name` attribute. ``` expected: [{:required=>false, :name=>"description", :description=>nil, :properties_description=>"optional"}] got: [{:required=>false, :name=>"description", :description=>"Description", :properties_description=>"optional"}] ```
1 parent 758c879 commit 26af788

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎spec/views/api_blueprint_index_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
properties_description: "required, string"
143143
}, {
144144
name: "option",
145-
description: nil,
145+
description: 'Option',
146146
properties_description: 'optional'
147147
}]
148148
expect(post_route_with_optionals[:has_attributes?]).to eq false
@@ -158,7 +158,7 @@
158158
expect(posts_route[:attributes]).to eq [{
159159
required: false,
160160
name: "description",
161-
description: nil,
161+
description: 'Description',
162162
properties_description: "optional"
163163
}]
164164
end

0 commit comments

Comments
 (0)
Please sign in to comment.