Sha256: 19dfb60dbe248877cd8c83ee867e920b67fedf6ff7d76ad2922e81236ed1ca8e
Contents?: true
Size: 518 Bytes
Versions: 3
Compression:
Stored size: 518 Bytes
Contents
require 'test_helper' module Admin class WidgetsControllerTest < ActionController::TestCase fixtures :all test "should get show" do get :show, category_id: categories(:toys).to_param, id: widgets(:one).to_param assert_response :success end test "should display the nested index" do response = get :index, category_id: categories(:toys).to_param assert_response :success assert_match /Lego/, response.body refute_match /Hammer/, response.body end end end
Version data entries
3 entries across 3 versions & 1 rubygems