Permalink
Browse files

Change rdfa-test-suite profile lookup logic.

  • Loading branch information...
1 parent 067e659 commit 27b6c752ee1501f24fe018158a707ed24533195a @gkellogg committed Jan 7, 2011
Showing with 5 additions and 1 deletion.
  1. +0 −1 History.rdoc
  2. +5 −0 spec/rdfa_helper.rb
View
@@ -1,6 +1,5 @@
=== 0.5.11
* AbstractSQLStore was incorrectly putting Literal::Language representation rather than value in database.
-* Don't include ActiveRecordStore unless ActiveRecord::VERSION::MAJOR == 2
* Changed Graph#eql? and Graph#== to do simple equality check.
* Added Graph#isomorphic? which does more exhaustive equivalence check.
* Fixed bug in MemoryStore where a frozen resource could be returned.
View
@@ -230,7 +230,12 @@ def self.from_yaml(file)
module OpenURI
#alias_method :open_uri_orig, :open_uri
def self.open_uri(uri)
+ uri = Addressable::URI.parse(uri).normalize.to_s
case uri
+ when %r(http://rdfa.digitalbazaar.com/test-suite/profiles/(.*)$)
+ file = File.join(File.expand_path(File.dirname(__FILE__)), 'rdfa-test-suite', 'profiles', $1)
+ #puts "file: #{file}"
+ File.open(file)
when %r(http://rdfa.digitalbazaar.com/test-suite/test-cases/\w+)
file = uri.to_s.sub(%r(http://rdfa.digitalbazaar.com/test-suite/test-cases/\w+),
File.join(File.expand_path(File.dirname(__FILE__)), 'rdfa-test-suite', 'tests'))

0 comments on commit 27b6c75

Please sign in to comment.