Skip to content

Instantly share code, notes, and snippets.

@pezholio
Created August 6, 2015 10:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pezholio/44b042ab703167a9a6d1 to your computer and use it in GitHub Desktop.
Save pezholio/44b042ab703167a9a6d1 to your computer and use it in GitHub Desktop.
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