Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 210f525b68
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (18 sloc) 0.459 kB
# coding:utf-8
require_relative '../test_helper'
require 'ostruct'
module SmartAnswer
class ValueQuestionTest < ActiveSupport::TestCase
def setup
@initial_state = State.new(:example)
end
test "Value can be saved" do
q = Question::Value.new(:example) do
save_input_as :myval
next_node :done
end
new_state = q.transition(@initial_state, "123")
assert_equal '123', new_state.myval
end
end
end
Jump to Line
Something went wrong with that request. Please try again.