kosher_bacon 0.0.1 → 0.0.2

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,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MGJlZTViMWRiM2ZiY2YzZTYwZjE0ZGViYzZmYTQ5N2VhNWRiNmVkZQ==
5
- data.tar.gz: !binary |-
6
- ODFlMzAyN2NjOTQxNjBiZjVjYzhiYTVmYTYzYWM1YTNjZDc1MjE2OQ==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- NTg5ZDM0NzJjYWI1Njg2Zjc5OWUwNGMzOGM5ZTgxYjE5YTk0ODIxNzA3OTk5
10
- OWNiZTgyY2U5Yzg5Yzg0NTUzYmMxNTAyNjcwY2NkN2UxOGFhMDQ0NDdkNTg4
11
- ZWM5YjFkODYzZGExYTdjZjI0NTM3NzFmOTIzY2I1ODkwOGU3MDc=
12
- data.tar.gz: !binary |-
13
- MWZhMzE0MDYwMTQwNjg5ZmZmMjNhYTA5MzVhNWQ4Mjk1MGRkNDA2ODJlOGI1
14
- OTQ1ZGVhYWU3MDUzMzE2NjNjNjM4Njc1M2ExYzMzNTNmOGM4YjU0MWI1MDhk
15
- NjgzMWMxNzM4YTA3NzlkNDFjY2YwNTFlNjc3NzY4ODM5NmMzNjc=
2
+ SHA1:
3
+ metadata.gz: b8026f8b72849571dd6ababc935e61fa688441d7
4
+ data.tar.gz: 4ee9de9534d2fa813b1c4bfb4d3f8fc456900364
5
+ SHA512:
6
+ metadata.gz: b182c4f94778ed07b8950c52564cf71cc469485f074ba2a2d2ad9712688190b2d398764cfd0225b962ac5fe1ba166450daee76a83f3583dccd37cc8a91f7254f
7
+ data.tar.gz: 4920b8c0456451f0d9c4c08360d2d03ebf9eb3168b4e9afe618f92da830ce8796ff4bb6d233cd2b20b5a94359cad0d9e17da166e8f821bffef88e5b307cf04d1
data/README.md CHANGED
@@ -1,13 +1,14 @@
1
- # kosher_bacon
1
+ # Kosher Bacon
2
2
 
3
- kosher_bacon is an adaptor that converts test written for
4
- MiniTest::Unit (and Test::Unit) into specs that can be run by
5
- [MacBacon](https://github.com/alloy/MacBacon) on
6
- [RubyMotion](http://www.rubymotion.com/)
3
+ Kosher Bacon allows tests written for MiniTest::Unit and Test::Unit to
4
+ run on [RubyMotion](http://www.rubymotion.com/), in both the simulator
5
+ and on device. Behind the scenes, test cases are converted to specs
6
+ that will be run by [MacBacon](https://github.com/alloy/MacBacon),
7
+ RubyMotion's built-in test framework.
7
8
 
8
9
  ## Status
9
10
 
10
- Version: 0.0.1 "Lucky"
11
+ Version 0.0.1
11
12
 
12
13
  ## Installation
13
14
 
@@ -29,13 +30,45 @@ And then update your Rakefile like so:
29
30
 
30
31
  ## Usage
31
32
 
32
- Write your tests in a test/unit style. For learning how to do this,
33
- feel free to start with the links below, if you trust this README. If
34
- your eyes slanted as you read the word "trust", enjoy your upcoming
35
- search engine time.
36
-
37
- * [WikiBooks: Ruby Programming/Unit testing](http://en.wikibooks.org/wiki/Ruby_Programming/Unit_testing)
38
- * [A Guide to Testing Rails Applications, Unit Testing your Models](http://guides.rubyonrails.org/testing.html)
33
+ Write your tests in a test/unit style. For example:
34
+
35
+ ```ruby
36
+ class TestBacon < MiniTest::Unit::TestCase
37
+
38
+ def setup
39
+ @bacon = Bacon.new
40
+ end
41
+
42
+ def test_is_kosher_after_processing
43
+ @bacon.process
44
+ assert_predicate @bacon, :kosher?
45
+ end
46
+
47
+ end
48
+ ```
49
+
50
+ ## Compatibility
51
+
52
+ Assertions implemented:
53
+
54
+ * `assert`, `refute`
55
+ * `assert_empty`, `refute_empty`
56
+ * `assert_equal`, `assert_not_equal`, `refute_equal`
57
+ * `assert_in_delta`, `refute_in_delta`
58
+ * `assert_in_epsilon`, `refute_in_epsilon`
59
+ * `assert_includes`, `refute_includes`
60
+ * `assert_instance_of`, `refute_instance_of`
61
+ * `assert_kind_of`, `refute_kind_of`
62
+ * `assert_match`, `assert_no_match`, `refute_match`
63
+ * `assert_nil`, `assert_not_nil`, `refute_nil`
64
+ * `assert_operator`, `refute_operator`
65
+ * `assert_predicate`, `refute_predicate`
66
+ * `assert_raises`, `assert_raise`, `assert_nothing_raised`, `refute_raises`
67
+ * `assert_respond_to`, `refute_respond_to`
68
+ * `assert_same`, `assert_not_same`, `refute_same`
69
+ * `assert_send`, `assert_not_send`, `refute_send`
70
+ * `assert_throws`, `assert_nothing_thrown`, `refute_throws`
71
+ * `assert_block`
39
72
 
40
73
  ## Contributing
41
74
 
@@ -12,7 +12,7 @@ module MiniTest
12
12
  #
13
13
 
14
14
  def self.inherited(subclass)
15
- name = subclass.to_s.sub(/^Test/, '').gsub(/([a-z])([A-Z])/, '\1 \2')
15
+ name = subclass.to_s.sub(/^Test/, '')
16
16
  context = describe name do
17
17
  before do
18
18
  @test_case = subclass.new
@@ -194,7 +194,7 @@ module MiniTest
194
194
  def refute_match(matcher, obj, msg=nil)
195
195
  matcher = /#{Regexp.escape(matcher)}/ if String === matcher
196
196
  if msg.nil?
197
- obj.should !~ matcher
197
+ obj.should.not =~ matcher
198
198
  else
199
199
  refute matcher =~ obj, msg
200
200
  end
@@ -266,7 +266,7 @@ module MiniTest
266
266
  end
267
267
  alias_method :assert_raise, :assert_raises
268
268
 
269
- def refute_raises(msg=nil)
269
+ def refute_raises(*exceptions, &block)
270
270
  msg = exceptions.last if String === exceptions.last
271
271
  if msg.nil?
272
272
  block.should.not.raise?(*exceptions)
@@ -1,3 +1,3 @@
1
1
  module KosherBacon
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kosher_bacon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-03-05 00:00:00.000000000 Z
11
+ date: 2013-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -28,22 +28,19 @@ dependencies:
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- description: ! 'kosher_bacon is an adaptor that converts test written for MiniTest::Unit
42
- into
43
-
41
+ description: |
42
+ kosher_bacon is an adaptor that converts test written for MiniTest::Unit into
44
43
  specs that can be run by MacBacon.
45
-
46
- '
47
44
  email:
48
45
  - dave@kastiglione.com
49
46
  executables: []
@@ -69,19 +66,19 @@ require_paths:
69
66
  - lib
70
67
  required_ruby_version: !ruby/object:Gem::Requirement
71
68
  requirements:
72
- - - ! '>='
69
+ - - '>='
73
70
  - !ruby/object:Gem::Version
74
71
  version: '0'
75
72
  required_rubygems_version: !ruby/object:Gem::Requirement
76
73
  requirements:
77
- - - ! '>='
74
+ - - '>='
78
75
  - !ruby/object:Gem::Version
79
76
  version: '0'
80
77
  requirements: []
81
78
  rubyforge_project:
82
- rubygems_version: 2.0.0
79
+ rubygems_version: 2.0.3
83
80
  signing_key:
84
81
  specification_version: 4
85
- summary: ! '{MiniTest,Test}::Unit adaptor for RubyMotion'
82
+ summary: '{MiniTest,Test}::Unit adaptor for RubyMotion'
86
83
  test_files: []
87
84
  has_rdoc: