Sha256: 3a19b2fe904bd6a394b4c4d4e6fd61cb9eb13414d5cc16a6cdc5b6e4ed6056fa
Contents?: true
Size: 936 Bytes
Versions: 3
Compression:
Stored size: 936 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, :use_route => :fogged assert_json_resource(resource) end test "should show video resource" do resource = fogged_resources(:resource_mov) get :show, :id => resource, :use_route => :fogged assert_json_resource(resource) end test "should show image resource" do resource = fogged_resources(:resource_png) get :show, :id => resource, :use_route => :fogged assert_json_resource(resource) end test "should not show resource with invalid id" do assert_raise(ActiveRecord::RecordNotFound) do get :show, :id => 1234567890, :use_route => :foggede end end end end
Version data entries
3 entries across 3 versions & 1 rubygems