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
124 describe "#each" do124 describe "#each" do
125 let :paths do125 let :paths do
126 paths = []126 paths = []
127 store.each { |path| paths << path.sub(tmp_path, '') }127 store.each { |path| paths << path.remove(tmp_path) }
128 paths128 paths
129 end129 end
130 130