test/test_imagery.rb in imagery-0.0.1 vs test/test_imagery.rb in imagery-0.0.2

- old
+ new

@@ -17,26 +17,26 @@ end test "root_path when no ROOT_DIR" do imagery = Imagery.new(Photo.new(1001)) imagery.root = '/' - assert_equal "/public/system/photo/1001/tmp", imagery.tmp + assert_equal "/public/system/photo/1001/tmp", imagery.send(:tmp) end test "root_path when ROOT_DIR defined on imagery" do Imagery::ROOT_DIR = '/root/dir' imagery = Imagery.new(Photo.new(1001)) - assert_equal "/root/dir/public/system/photo/1001/tmp", imagery.tmp + assert_equal "/root/dir/public/system/photo/1001/tmp", imagery.send(:tmp) Imagery.send :remove_const, :ROOT_DIR end test "root_path when ROOT_DIR defined on object" do Object::ROOT_DIR = '/root/dir' imagery = Imagery.new(Photo.new(1001)) - assert_equal "/root/dir/public/system/photo/1001/tmp", imagery.tmp + assert_equal "/root/dir/public/system/photo/1001/tmp", imagery.send(:tmp) Object.send :remove_const, :ROOT_DIR end describe "file" do