Sha256: 02c5417cd0eb4dbcf683a0d4811a8261fe61596bfad211fe1049c770c4d907ce
Contents?: true
Size: 888 Bytes
Versions: 2
Compression:
Stored size: 888 Bytes
Contents
require 'spec_helper' require 'turnip_formatter/printer/scenario' module TurnipFormatter::Printer describe Scenario do include_context 'turnip_formatter scenario setup' include_context 'turnip_formatter standard scenario metadata' let(:scenario) do TurnipFormatter::Scenario::Pass.new(example) end context 'turnip example' do describe '.print_out' do subject { Scenario.print_out(scenario) } it { should include "<a href=\"##{scenario.id}\">" } # scenario.id it { should include 'Scenario: Scenario' } # h(scenario.name) end end context 'not turnip example' do describe '.print_out' do before do scenario.stub(:validation) { raise NoFeatureFileError } RuntimeError.should_receive(:print_out) end it { Scenario.print_out(scenario) } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
turnip_formatter-0.2.3 | spec/turnip_formatter/printer/scenario_spec.rb |
turnip_formatter-0.2.2 | spec/turnip_formatter/printer/scenario_spec.rb |