Sha256: 61b3c5210c1c12b14f98b17b223b28d6d8cd006a16668e7d77e89eab4472b21f
Contents?: true
Size: 795 Bytes
Versions: 5
Compression:
Stored size: 795 Bytes
Contents
require 'spec_helper' module ApiTaster describe RoutesController do it "#index" do get :index, :use_route => :api_taster assigns(:routes).should be_kind_of(Hash) end it "#show" do Route.stub(:find).and_return(Route.new) Route.stub(:inputs_for).and_return([]) get :show, :id => 1, :use_route => :api_taster assigns(:route).should be_kind_of(Route) assigns(:inputs).should be_kind_of(Array) end it "#missing_definitions" do get :missing_definitions, :use_route => :api_taster assigns(:missing_definitions).should be_kind_of(Array) end it "#obsolete_definitions" do get :obsolete_definitions, :use_route => :api_taster assigns(:obsolete_definitions).should be_kind_of(Array) end end end
Version data entries
5 entries across 5 versions & 1 rubygems