remarkable 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +16 -0
- data/LICENSE +20 -0
- data/README +2 -0
- data/lib/remarkable/base.rb +54 -0
- data/lib/remarkable/core_ext/array.rb +19 -0
- data/lib/remarkable/dsl/assertions.rb +184 -0
- data/lib/remarkable/dsl/callbacks.rb +54 -0
- data/lib/remarkable/dsl/matches.rb +142 -0
- data/lib/remarkable/dsl/optionals.rb +142 -0
- data/lib/remarkable/dsl.rb +39 -0
- data/lib/remarkable/i18n.rb +54 -0
- data/lib/remarkable/macros.rb +48 -0
- data/lib/remarkable/matchers.rb +19 -0
- data/lib/remarkable/messages.rb +98 -0
- data/lib/remarkable/pending.rb +33 -0
- data/lib/remarkable/rspec.rb +26 -0
- data/lib/remarkable/version.rb +3 -0
- data/lib/remarkable.rb +20 -0
- data/locale/en.yml +14 -0
- data/spec/base_spec.rb +42 -0
- data/spec/dsl/assertions_spec.rb +54 -0
- data/spec/dsl/optionals_spec.rb +42 -0
- data/spec/i18n_spec.rb +41 -0
- data/spec/locale/en.yml +19 -0
- data/spec/locale/pt-BR.yml +21 -0
- data/spec/macros_spec.rb +26 -0
- data/spec/matchers/be_a_person_matcher.rb +25 -0
- data/spec/matchers/collection_contain_matcher.rb +32 -0
- data/spec/matchers/contain_matcher.rb +31 -0
- data/spec/matchers/single_contain_matcher.rb +50 -0
- data/spec/messages_spec.rb +65 -0
- data/spec/pending_spec.rb +12 -0
- data/spec/spec.opts +4 -0
- data/spec/spec_helper.rb +16 -0
- metadata +105 -0
@@ -0,0 +1,12 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
|
+
|
3
|
+
describe Remarkable::Macros do
|
4
|
+
|
5
|
+
describe "with pending examples" do
|
6
|
+
pending "pending examples" do
|
7
|
+
should_contain(5)
|
8
|
+
it("should not be run"){ true.should be_false }
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
end
|
data/spec/spec.opts
ADDED
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
$TESTING=true
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'ruby-debug'
|
5
|
+
|
6
|
+
dir = File.dirname(__FILE__)
|
7
|
+
require File.join(dir, '..', 'lib', 'remarkable')
|
8
|
+
|
9
|
+
Dir[File.join(dir, 'matchers', '*.rb')].each do |file|
|
10
|
+
require file
|
11
|
+
end
|
12
|
+
|
13
|
+
Remarkable.include_matchers!(Remarkable::Specs, Spec::Example::ExampleGroup)
|
14
|
+
|
15
|
+
Remarkable.add_locale File.join(dir, 'locale', 'en.yml')
|
16
|
+
Remarkable.add_locale File.join(dir, 'locale', 'pt-BR.yml')
|
metadata
ADDED
@@ -0,0 +1,105 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: remarkable
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Carlos Brando
|
8
|
+
- "Jos\xC3\xA9 Valim"
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
|
13
|
+
date: 2009-04-09 00:00:00 +02:00
|
14
|
+
default_executable:
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: rspec
|
18
|
+
type: :runtime
|
19
|
+
version_requirement:
|
20
|
+
version_requirements: !ruby/object:Gem::Requirement
|
21
|
+
requirements:
|
22
|
+
- - ">="
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: 1.2.0
|
25
|
+
version:
|
26
|
+
description: "Remarkable: a framework for rspec matchers, with support to macros and I18n."
|
27
|
+
email:
|
28
|
+
- eduardobrando@gmail.com
|
29
|
+
- jose.valim@gmail.com
|
30
|
+
executables: []
|
31
|
+
|
32
|
+
extensions: []
|
33
|
+
|
34
|
+
extra_rdoc_files:
|
35
|
+
- README
|
36
|
+
- LICENSE
|
37
|
+
- CHANGELOG
|
38
|
+
files:
|
39
|
+
- README
|
40
|
+
- LICENSE
|
41
|
+
- CHANGELOG
|
42
|
+
- lib/remarkable
|
43
|
+
- lib/remarkable/base.rb
|
44
|
+
- lib/remarkable/core_ext
|
45
|
+
- lib/remarkable/core_ext/array.rb
|
46
|
+
- lib/remarkable/dsl
|
47
|
+
- lib/remarkable/dsl/assertions.rb
|
48
|
+
- lib/remarkable/dsl/callbacks.rb
|
49
|
+
- lib/remarkable/dsl/matches.rb
|
50
|
+
- lib/remarkable/dsl/optionals.rb
|
51
|
+
- lib/remarkable/dsl.rb
|
52
|
+
- lib/remarkable/i18n.rb
|
53
|
+
- lib/remarkable/macros.rb
|
54
|
+
- lib/remarkable/matchers.rb
|
55
|
+
- lib/remarkable/messages.rb
|
56
|
+
- lib/remarkable/pending.rb
|
57
|
+
- lib/remarkable/rspec.rb
|
58
|
+
- lib/remarkable/version.rb
|
59
|
+
- lib/remarkable.rb
|
60
|
+
- locale/en.yml
|
61
|
+
has_rdoc: true
|
62
|
+
homepage: http://github.com/carlosbrando/remarkable
|
63
|
+
post_install_message:
|
64
|
+
rdoc_options: []
|
65
|
+
|
66
|
+
require_paths:
|
67
|
+
- lib
|
68
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
69
|
+
requirements:
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: "0"
|
73
|
+
version:
|
74
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
|
+
requirements:
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: "0"
|
79
|
+
version:
|
80
|
+
requirements: []
|
81
|
+
|
82
|
+
rubyforge_project: remarkable
|
83
|
+
rubygems_version: 1.3.1
|
84
|
+
signing_key:
|
85
|
+
specification_version: 2
|
86
|
+
summary: "Remarkable: a framework for rspec matchers, with support to macros and I18n."
|
87
|
+
test_files:
|
88
|
+
- spec/base_spec.rb
|
89
|
+
- spec/dsl
|
90
|
+
- spec/dsl/assertions_spec.rb
|
91
|
+
- spec/dsl/optionals_spec.rb
|
92
|
+
- spec/i18n_spec.rb
|
93
|
+
- spec/locale
|
94
|
+
- spec/locale/en.yml
|
95
|
+
- spec/locale/pt-BR.yml
|
96
|
+
- spec/macros_spec.rb
|
97
|
+
- spec/matchers
|
98
|
+
- spec/matchers/be_a_person_matcher.rb
|
99
|
+
- spec/matchers/collection_contain_matcher.rb
|
100
|
+
- spec/matchers/contain_matcher.rb
|
101
|
+
- spec/matchers/single_contain_matcher.rb
|
102
|
+
- spec/messages_spec.rb
|
103
|
+
- spec/pending_spec.rb
|
104
|
+
- spec/spec.opts
|
105
|
+
- spec/spec_helper.rb
|