Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change rdfa-test-suite profile lookup logic.

  • Loading branch information...
commit 27b6c752ee1501f24fe018158a707ed24533195a 1 parent 067e659
@gkellogg authored
Showing with 5 additions and 1 deletion.
  1. +0 −1  History.rdoc
  2. +5 −0 spec/rdfa_helper.rb
View
1  History.rdoc
@@ -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
5 spec/rdfa_helper.rb
@@ -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'))
Please sign in to comment.
Something went wrong with that request. Please try again.