spec/helper.rb in calais-0.0.5 vs spec/helper.rb in calais-0.0.6
- old
+ new
@@ -2,7 +2,9 @@
require 'spec'
require 'yaml'
require File.dirname(__FILE__) + '/../lib/calais'
-SAMPLE_DOCUMENT = File.read(File.join(File.dirname(__FILE__), 'fixtures/bicycles_austrailia.xml'))
-LICENSE_ID = YAML.load(File.read(File.join(File.dirname(__FILE__), 'fixtures/calais.yml')))['key']
+FIXTURES_DIR = File.join File.dirname(__FILE__), %[fixtures]
+SAMPLE_DOCUMENT = File.read(File.join(FIXTURES_DIR, %[bicycles_australia.xml]))
+SAMPLE_RESPONSE = File.read(File.join(FIXTURES_DIR, %[bicycles_australia.response.rdf]))
+LICENSE_ID = YAML.load(File.read(File.join(FIXTURES_DIR, %[calais.yml])))['key']