Skip to content

Commit

Permalink
Don't pollute global namespace...
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Aßmann committed May 25, 2011
1 parent 915c7f7 commit 1b427bf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/unit/resource_test.rb
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
ROOT = File.expand_path '../..', __FILE__
require "#{ ROOT }/teststrap"
root = File.expand_path '../..', __FILE__
require "#{ root }/teststrap"

storage = DAV::MemoryStorage.new
DAV.PropertyStorage = storage.scope :prefix => 'PROPERTIES'
DAV.ResourceStorage = storage.scope :prefix => 'RESOURCES'
DAV.RelationStorage = storage.scope :prefix => 'RELATIONS'

context "DAV::Resource" do
context 'DAV::Resource' do
setup { DAV::Resource }

context "object" do
setup { topic.new URI.parse 'http://example.org/resource' }
context 'instance' do
setup { topic.new Request.new('http://example.org/resource') }

asserts '#uri' do
topic.uri
Expand Down

0 comments on commit 1b427bf

Please sign in to comment.