minitest-filesystem 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5edb0d40a8fe405e13d768d35eebcd0a42ebdfad
4
- data.tar.gz: 8659eb65331a821a571ef3aa458fa20f639622b1
3
+ metadata.gz: 8147560c2e1b553781d1fe64aa3d16922e660fbb
4
+ data.tar.gz: fcf37de46bdce50cd7021be4b3fb59a3c7d00b28
5
5
  SHA512:
6
- metadata.gz: 24258a794d7def3488c1b13d8c298fe4937f74de30fb048165f5b069b16738e3ae7f59b1947d6808ca1199fc5862822091bbdeaedcb592f5d9710a7bc6928de1
7
- data.tar.gz: f06f66341d1ff128c1f4eb532e4019902c8dd577eaeadea944759cbcb182399700c286f8ccbd1a4279b149429446e6da8a59c22003027eeb05004af0c9b2164e
6
+ metadata.gz: 405554b5210ed89120068bb0e596c35b026323741ff91321fd6f96daab54f05d218e5bd41f99c313e27f1ac6bc297f769a1ca20921ad4d66665256df0749363c
7
+ data.tar.gz: bb04b93b924a0f67d284a19ded922f76c660182bf5210c924fa73405d7d51f5c66c6b61071a74a3c47edf1ef1e22b2ed99a89784881f720fe185ab90bba78b67
data/README.md CHANGED
@@ -77,9 +77,13 @@ directories inside `root_dir` that the matcher won't care about).
77
77
 
78
78
  ## Changelog
79
79
 
80
- ### 0.0.1
80
+ ### 1.0.1
81
81
 
82
- * Extract assertion and matcher from current projects
82
+ * Remove CamelCase naming.
83
+
84
+ ### 1.0.0
85
+
86
+ * Add support for Ruby 1.8.
83
87
 
84
88
  ### 0.1.0
85
89
 
@@ -87,6 +91,6 @@ directories inside `root_dir` that the matcher won't care about).
87
91
  * Add more tests around assertion
88
92
  * Infect `must_exist_within` expectation
89
93
 
90
- ### 1.0.0
94
+ ### 0.0.1
91
95
 
92
- * Add support for Ruby 1.8.
96
+ * Extract assertion and matcher from current projects
@@ -1,7 +1,7 @@
1
1
  require 'pathname'
2
2
 
3
- module MiniTest
4
- module FileSystem
3
+ module Minitest
4
+ module Filesystem
5
5
  class Matcher
6
6
  def initialize(root, &block)
7
7
  @actual_tree = MatchingTree.new(root)
@@ -1,5 +1,5 @@
1
1
  module Minitest
2
2
  module Filesystem
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
@@ -1,9 +1,9 @@
1
1
  require "minitest/filesystem/version"
2
2
  require "minitest/filesystem/matcher"
3
3
 
4
- module MiniTest::Assertions
4
+ module Minitest::Assertions
5
5
  def assert_contains_filesystem(dir, msg = nil, &block)
6
- matcher = MiniTest::FileSystem::Matcher.new(dir, &block)
6
+ matcher = Minitest::Filesystem::Matcher.new(dir, &block)
7
7
  assert matcher.match_found?, msg || matcher.message
8
8
  end
9
9
 
@@ -12,6 +12,6 @@ module MiniTest::Assertions
12
12
  end
13
13
  end
14
14
 
15
- module MiniTest::Expectations
15
+ module Minitest::Expectations
16
16
  infect_an_assertion :assert_contains_filesystem, :must_exist_within
17
17
  end
@@ -54,7 +54,7 @@ describe "assert_contains_filesystem" do
54
54
  file "foo"
55
55
  end }
56
56
 
57
- error = assert_raises(MiniTest::Assertion, &l)
57
+ error = assert_raises(Minitest::Assertion, &l)
58
58
  error.message.must_match(/expected `#{@root_dir}` to contain file `foo`/im)
59
59
  end
60
60
 
@@ -63,7 +63,7 @@ describe "assert_contains_filesystem" do
63
63
  dir "bar"
64
64
  end }
65
65
 
66
- error = assert_raises(MiniTest::Assertion, &l)
66
+ error = assert_raises(Minitest::Assertion, &l)
67
67
  error.message.must_match(/expected `#{@root_dir}` to contain directory `bar`/im)
68
68
  end
69
69
 
@@ -74,7 +74,7 @@ describe "assert_contains_filesystem" do
74
74
  end
75
75
  end }
76
76
 
77
- error = assert_raises(MiniTest::Assertion, &l)
77
+ error = assert_raises(Minitest::Assertion, &l)
78
78
  error.message.must_match(
79
79
  /expected `#{@root_dir + 'a_subdirectory'}` to contain file `missing_file`/im)
80
80
  end
@@ -84,7 +84,7 @@ describe "assert_contains_filesystem" do
84
84
  file "not_a_file"
85
85
  end }
86
86
 
87
- error = assert_raises(MiniTest::Assertion, &l)
87
+ error = assert_raises(Minitest::Assertion, &l)
88
88
  error.message.must_match(/expected `not_a_file` to be a file/im)
89
89
  end
90
90
 
@@ -93,7 +93,7 @@ describe "assert_contains_filesystem" do
93
93
  dir "not_a_dir"
94
94
  end }
95
95
 
96
- error = assert_raises(MiniTest::Assertion, &l)
96
+ error = assert_raises(Minitest::Assertion, &l)
97
97
  error.message.must_match(/expected `not_a_dir` to be a directory/im)
98
98
  end
99
99
 
@@ -104,7 +104,7 @@ describe "assert_contains_filesystem" do
104
104
  file "baz"
105
105
  end }
106
106
 
107
- error = assert_raises(MiniTest::Assertion, &l)
107
+ error = assert_raises(Minitest::Assertion, &l)
108
108
  error.message.must_equal(failure_msg)
109
109
  end
110
110
  end
@@ -41,7 +41,7 @@ describe "filesystem must_exist_within" do
41
41
  file "missing_file"
42
42
  }.must_exist_within(@root_dir) }
43
43
 
44
- error = assert_raises(MiniTest::Assertion, &l)
44
+ error = assert_raises(Minitest::Assertion, &l)
45
45
  error.message.must_match(
46
46
  /expected `#{@root_dir}` to contain file `missing_file`/im)
47
47
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-filesystem
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefano Zanella