Sha256: ea3634a4ad6ddfd783d128cbd39288c3661c8a935f873eef0938992104f2fcc8
Contents?: true
Size: 847 Bytes
Versions: 9
Compression:
Stored size: 847 Bytes
Contents
require "test_helper" module Fogged class ResourcesControllerShowTest < ActionController::TestCase tests ResourcesController include ResourceTestHelper test "should show resource" do resource = fogged_resources(:resource_text_1) get :show, :id => resource assert_json_resource(resource) end test "should show video resource" do resource = fogged_resources(:resource_mov_1) get :show, :id => resource assert_json_resource(resource) end test "should show image resource" do resource = fogged_resources(:resource_png_1) get :show, :id => resource assert_json_resource(resource) end test "should not show resource with invalid id" do assert_raise(ActiveRecord::RecordNotFound) do get :show, :id => 1234567890 end end end end
Version data entries
9 entries across 9 versions & 1 rubygems