Sha256: 460734cc5020713e9008cd3e1a4d0d45af417b8e47d8536940aef9df85d835c6
Contents?: true
Size: 923 Bytes
Versions: 1
Compression:
Stored size: 923 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' require 'cucumber' require 'cucumber/rb_support/rb_language' describe Cucumber::StepMother, 'extended with cucumber_factory' do before(:each) do prepare_cucumber_example end describe 'step_match' do it "should not raise an ambiguous step error and return the user step if the only other matching step is a factory step" do user_step = @dsl.Given(/^there is a movie with a funny tone/){} @step_mother.step_match('there is a movie with a funny tone').should == user_step end it "should still raise an ambiguous step error if more than two non-factory steps match" do @dsl.Given(/^there is a movie with (.*?) tone/){} @dsl.Given(/^there is a movie with a funny tone/){} expect do @step_mother.step_match('there is a movie with a funny tone') end.to raise_error(Cucumber::Ambiguous) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cucumber_factory-1.5.0 | spec/step_mother_ext_spec.rb |