Skip to content

Commit 2c359fe

Browse files
committed
Small spec fix. Ignore coverage folder
1 parent 6763cb2 commit 2c359fe

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
log/*.log
33
pkg/
44
node_modules/
5+
coverage/
56
spec/dummy/db/*.sqlite3
67
spec/dummy/db/*.sqlite3-journal
78
spec/dummy/log/*.log

spec/usage/components/small_spec.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def response
1111
components {
1212
# simple small tag
1313
small do
14-
plain 'I am simple'
14+
plain 'I am a simple small tag'
1515
end
1616

1717
# enhanced small tag
@@ -28,8 +28,8 @@ def response
2828
static_output = page.html
2929

3030
expected_static_output = <<~HTML
31-
<small>I am simple</small>
32-
<small id="my-id" class="my-class">I am enhanced small tag</small>
31+
<small>I am a simple small tag</small>
32+
<small id="my-id" class="my-class">I am a enhanced small tag</small>
3333
HTML
3434

3535
expect(stripped(static_output)).to include(stripped(expected_static_output))
@@ -42,10 +42,10 @@ class ExamplePage < Matestack::Ui::Page
4242
def response
4343
components {
4444
# simple small
45-
small text: 'I am simple'
45+
small text: 'I am a simple small tag'
4646

4747
# enhanced small
48-
small id: 'my-id', class: 'my-class', text: 'I am enhanced'
48+
small id: 'my-id', class: 'my-class', text: 'I am enhanced small tag'
4949
}
5050
end
5151

@@ -56,8 +56,8 @@ def response
5656
static_output = page.html
5757

5858
expected_static_output = <<~HTML
59-
<small>I am simple</small>
60-
<small id="my-id" class="my-class">I am enhanced</small>
59+
<small>I am a simple small tag</small>
60+
<small id="my-id" class="my-class">I am enhanced small tag</small>
6161
HTML
6262

6363
expect(stripped(static_output)).to include(stripped(expected_static_output))

0 commit comments

Comments
 (0)