History

Use String#remove

Thibaut committed 12 years ago

Commit bcd4a5b1 parent a0b795934 files · +79 −79Browse files

Showing the changes to test (1 of 34 files). Show all

Unified · Split

test/lib/docs/storage/file_store_test.rb+1−1
@@ -124,7 +124,7 @@ class DocsFileStoreTest < MiniTest::Spec · 123 unmodified lines
124124 describe "#each" do
125125 let :paths do
126126 paths = []
127− store.each { |path| paths << path.sub(tmp_path, '') }
127+ store.each { |path| paths << path.remove(tmp_path) }
128128 paths
129129 end
130130