Created
August 6, 2015 10:16
-
-
Save pezholio/44b042ab703167a9a6d1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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