File: encoding.feature

package info (click to toggle)
ruby-simplecov 0.22.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,500 kB
  • sloc: ruby: 5,550; makefile: 10
file content (38 lines) | stat: -rw-r--r-- 1,182 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
@rspec

Feature:

  We've experienced some problems given source file encoding.
  We want to make sure we try the appropriate encoding and
  can display it correcty in the formatter.

  Background:
    Given I'm working on the project "encodings"

  Scenario: Running tests produces coverage and it's mostly legible
  When I open the coverage report generated with `bundle exec rspec spec`
  Then I should see the groups:
    | name      | coverage | files |
    | All Files | 55.56%   | 4     |

  When I open the detailed view for "lib/utf8.rb"
  Then "�" should not be visible
  And "🇯🇵" should be visible
  And "おはよう" should be visible


  When I close the detailed view
  And I open the detailed view for "lib/euc_jp.rb"
  Then "�" should not be visible
  And "おはよう" should be visible

  When I close the detailed view
  And I open the detailed view for "lib/euc_jp_not_declared.rb"
  Then "�" should not be visible
  And "Fun3" should be visible

  When I close the detailed view
  And I open the detailed view for "lib/euc_jp_not_declared_tracked.rb"
  # no way around it I guess
  Then "�" should be visible
  And "NoDeclare" should be visible