test/models/skos_export_test.rb in iqvoc-4.7.0 vs test/models/skos_export_test.rb in iqvoc-4.8.0
- old
+ new
@@ -13,23 +13,21 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require File.join(File.expand_path(File.dirname(__FILE__)), '../test_helper')
-require 'iqvoc/skos_exporter'
-require 'iqvoc/skos_importer'
class SkosExportTest < ActiveSupport::TestCase
setup do
@testdata = File.read(Rails.root.join('data', 'hobbies.nt')).split("\n")
@export_file = Rails.root.join('tmp/export/skos_export_test.nt').to_s
- Iqvoc::SkosImporter.new(@testdata, 'http://hobbies.com/').run
+ SkosImporter.new(@testdata, 'http://hobbies.com/').run
end
test 'basic_exporter_functionality' do
- Iqvoc::SkosExporter.new(@export_file, 'nt', 'http://hobbies.com/').run
+ SkosExporter.new(@export_file, 'nt', 'http://hobbies.com/').run
generated_export = File.read(@export_file)
@testdata.each do |ntriple|
assert generated_export.include?(ntriple), "could'n find ntriple '#{ntriple}' in generated_export"
@@ -39,10 +37,10 @@
File.delete(@export_file)
end
test 'skos exporter with an unknown export type' do
assert_raise RuntimeError do
- Iqvoc::SkosExporter.new(@export_file, 'txt', 'http://hobbies.com/')
+ SkosExporter.new(@export_file, 'txt', 'http://hobbies.com/')
end
end
end