./test/dolt/git/blob_test.rb in dolt-0.1.0 vs ./test/dolt/git/blob_test.rb in dolt-0.1.1
- old
+ new
@@ -16,33 +16,33 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#++
require "test_helper"
require "dolt/git/blob"
-describe Dolt::Blob do
+describe Dolt::Git::Blob do
describe "#raw" do
it "returns full raw blob" do
- blob = Dolt::Blob.new("file.txt", "Something something")
+ blob = Dolt::Git::Blob.new("file.txt", "Something something")
assert_equal "Something something", blob.raw
end
end
describe "#lines" do
it "returns empty array for empty blob" do
- blob = Dolt::Blob.new("file.txt", "")
+ blob = Dolt::Git::Blob.new("file.txt", "")
assert_equal [], blob.lines
end
it "returns array of one line" do
- blob = Dolt::Blob.new("file.txt", "Something something")
+ blob = Dolt::Git::Blob.new("file.txt", "Something something")
assert_equal ["Something something"], blob.lines
end
it "returns array of lines" do
- blob = Dolt::Blob.new("file.txt", "Something\nsomething\nYup")
+ blob = Dolt::Git::Blob.new("file.txt", "Something\nsomething\nYup")
assert_equal ["Something", "something", "Yup"], blob.lines
end
end
end