Class: FakeAssets

Inherits:
Object show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-html-formatter-19.2.0/spec/html_formatter_spec.rb

Instance Method Summary collapse

Instance Method Details

#cssObject



9
10
11
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-html-formatter-19.2.0/spec/html_formatter_spec.rb', line 9

def css
  "<style>div { color: red }</style>"
end

#scriptObject



13
14
15
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-html-formatter-19.2.0/spec/html_formatter_spec.rb', line 13

def script
  "<script>alert('Hi')</script>"
end

#templateObject



5
6
7
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-html-formatter-19.2.0/spec/html_formatter_spec.rb', line 5

def template
  "<html>{{css}}<body>{{messages}}</body>{{script}}</html>"
end