Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
require 'test_helper'
class FlowchartsControllerTest < ActionController::TestCase
include Devise::TestHelpers
test "it sets defaults" do
get 'show'
assert assigns(:jurisdiction) == "gb"
assert assigns(:type) == "Practical"
end
test "it sets the correct questions and dependencies" do
get 'show'
flow = Flow.new("gb", "Practical")
assert assigns(:questions) == flow.questions
assert assigns(:dependencies) == flow.dependencies
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment