ontologies_controller_test.rb revision 38dab3b63e2730b443590a53de93e085659efe25
require 'test_helper'
context 'Ontology Instance' do
setup do
2.times { FactoryGirl.create :entity, :ontology => @ontology }
end
setup do
end
should render_template 'ontologies/_ontology'
end
setup do
@search = @ontology.name
end
should render_template 'ontologies/_ontology'
end
end
setup do
end
setup do
get :show, :id => @ontology.to_param
end
should respond_with :redirect
end
setup do
get :show, :id => @ontology.to_param
end
should respond_with :redirect
end
end
setup do
end
setup do
end
end
setup do
end
end
setup do
source_url: ''
}],
}
end
end
setup do
source_url: ''
}],
}
end
end
end
setup do
}],
}
end
should respond_with :redirect
end
setup do
}],
}
end
end
end
end
end
setup do
end
setup do
get :edit, :id => @ontology.to_param
end
end
setup do
:id => @ontology.to_param,
:name => 'foo bar'
end
end
end
end
end