Sha256: cc3f573005893e0c4f88ccd266585cc7cca8857cd7d606575efe48d485a2fa61
Contents?: true
Size: 937 Bytes
Versions: 2
Compression:
Stored size: 937 Bytes
Contents
# frozen_string_literal: true require 'test_helper' class GodsControllerTest < ActionDispatch::IntegrationTest setup do @god = gods(:one) end test 'should get index' do get gods_url assert_response :success end test 'should get new' do get new_god_url assert_response :success end test 'should create god' do assert_difference('God.count') do post gods_url, params: { god: {} } end assert_redirected_to god_url(God.last) end test 'should show god' do get god_url(@god) assert_response :success end test 'should get edit' do get edit_god_url(@god) assert_response :success end test 'should update god' do patch god_url(@god), params: { god: {} } assert_redirected_to god_url(@god) end test 'should destroy god' do assert_difference('God.count', -1) do delete god_url(@god) end assert_redirected_to gods_url end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
acts_as_graph_diagram-0.1.1 | test/dummy/test/controllers/gods_controller_test.rb |
acts_as_graph_diagram-0.1.0 | test/dummy/test/controllers/gods_controller_test.rb |