spec/unit/stream_spec.rb in bulldog-0.1.1 vs spec/unit/stream_spec.rb in bulldog-0.2.0

- old
+ new

@@ -91,12 +91,12 @@ stream.reload stream.size.should == 'new content'.size end it "should make #content_type return the new content type of the file" do - jpg_data = File.read(test_path('test.jpg')) - png_data = File.read(test_path('test.png')) + jpg_data = File.read("#{ROOT}/spec/data/test.jpg") + png_data = File.read("#{ROOT}/spec/data/test.png") stream = stream(jpg_data) stream.content_type.should =~ %r'\Aimage/jpeg' update_target(stream, png_data) stream.reload stream.content_type.should =~ %r'\Aimage/png' @@ -107,10 +107,10 @@ stream.reload stream.size.should == 'content'.size end it "should not change the result of #content_type" do - jpg_data = File.read(test_path('test.jpg')) + jpg_data = File.read("#{ROOT}/spec/data/test.jpg") stream = stream(jpg_data) stream.reload stream.content_type.should =~ %r'\Aimage/jpeg' end end