Sha256: d1a7a1b25997157c159061b31b44beeb9e9e32ac7ee4a20db97b4c33b5b4af13
Contents?: true
Size: 630 Bytes
Versions: 3
Compression:
Stored size: 630 Bytes
Contents
require 'spec_helper' describe ApplicationRunner do before(:each) do @step = Step.new(1) do @response_paths = {"yes" => 2} end @application_runner = ApplicationRunner.new([@step]) end describe "Running the Tuvi program" do describe "determine_next_step" do it "should determine the next step based on response paths" do @application_runner.determine_next_step(@step, "yes").should == 2 end it "should set the next step to be the current step if input is invalid" do @application_runner.determine_next_step(@step, "blah").should == 1 end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tuvi-0.0.14 | spec/tuvi/application_runner_spec.rb |
tuvi-0.0.13 | spec/tuvi/application_runner_spec.rb |
tuvi-0.0.12 | spec/tuvi/application_runner_spec.rb |