Skip to content

Commit 2f93545

Browse files
add spec for required attribute
1 parent dd569c3 commit 2f93545

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

spec/usage/components/bdo_spec.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,19 @@ def response
3535
expect(stripped(static_output)).to include(stripped(expected_static_output))
3636

3737
end
38+
39+
it 'Fails if required dir tag is not set' do
40+
class ExamplePage < Matestack::Ui::Page
41+
def response
42+
components {
43+
bdo text: 'Simple bdo ltr tag'
44+
}
45+
end
46+
end
47+
48+
visit '/example'
49+
50+
expect(page).to have_content("required key 'dir' is missing")
51+
52+
end
3853
end

0 commit comments

Comments
 (0)