axioms_controller_test.rb revision 7ef46b1adca473f664769a44a378e9f08385d3a0
require 'test_helper'
class AxiomsControllerTest < ActionController::TestCase
should route(:get, "/ontologies/id/axioms").to(:controller=> :axioms, :action => :index, :ontology_id => 'id')
context 'Ontology Instance' do
setup do
@ontology = Factory :ontology
end
context 'on GET to index' do
setup do
get :index, :ontology_id => @ontology.to_param
end
should respond_with :success
end
end
end