Sha256: 77caa95555aa3c3ddc98d6a8e2c66e763f23d9e48f9c1b406561ec61a895b37f
Contents?: true
Size: 595 Bytes
Versions: 3
Compression:
Stored size: 595 Bytes
Contents
require "test_helper" module Admin class PartsControllerTest < ActionController::TestCase fixtures :all test "should get show" do get :show, category_id: categories(:toys).to_param, widget_id: widgets(:one).to_param, id: parts(:one).to_param assert_response :success end test "should display the nested index" do response = get :index, category_id: categories(:toys).to_param, widget_id: widgets(:one).to_param assert_response :success assert_match /Some part/, response.body refute_match /Another part/, response.body end end end
Version data entries
3 entries across 3 versions & 1 rubygems