Sha256: 5247ff84843881cfe6d95cb2231309f404c6a958c14b35b13709d882909f7aab
Contents?: true
Size: 952 Bytes
Versions: 19
Compression:
Stored size: 952 Bytes
Contents
require 'cucumber/html_formatter/assets_loader' describe Cucumber::HTMLFormatter::AssetsLoader do let(:subject) { Cucumber::HTMLFormatter::AssetsLoader.new } before do allow(File).to receive(:read).and_return('whatever content') end context '.template' do it 'reads the content of assets/index.mustache.html' do expect(subject.template).to eq('whatever content') expect(File).to have_received(:read).with(/.*\/assets\/index\.mustache\.html$/) end end context '.css' do it 'reads the content of assets/cucumber-html.css' do expect(subject.css).to eq('whatever content') expect(File).to have_received(:read).with(/.*\/assets\/cucumber-html\.css$/) end end context '.script' do it 'reads the content of assets/cucumber-html\.js' do expect(subject.script).to eq('whatever content') expect(File).to have_received(:read).with(/.*\/assets\/cucumber-html\.js$/) end end end
Version data entries
19 entries across 19 versions & 3 rubygems