ndd-rspec-rails 0.2.0 → 0.2.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 +4 -4
- data/CHANGELOG.md +6 -2
- data/README.md +7 -6
- data/lib/ndd/rspec/rails/matchers/controller.rb +1 -0
- data/lib/ndd/rspec/rails/matchers/model.rb +1 -0
- data/lib/ndd/rspec/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5335b4358888653cf0468af49063137e084bfb35
|
|
4
|
+
data.tar.gz: 674717de6685ee9a06e8a3273caa36fbb7082c33
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d8f2abf42b37e2eb0b62a2f11b81687ef186dee8afb6ef60f3235cceb75cb6f9a3d3136a735c4653d5eb6c41a7e4638e86f7da887316f8170fd5959c2bb39d97
|
|
7
|
+
data.tar.gz: 61ba7a24b0cbf76211039a2ee94bc88de33325150d527cf7b544100f7e8594e3b5d5ca45c1f73b0c6668d2a78ea991f7e4f3c0be37c7331c0527414281776bdc
|
data/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
# NDD RSpec Rails changelog
|
|
2
2
|
|
|
3
|
+
## Version 0.2.1
|
|
4
|
+
|
|
5
|
+
- Fix missing RSpec require
|
|
6
|
+
|
|
3
7
|
## Version 0.2.0
|
|
4
8
|
|
|
5
|
-
-
|
|
9
|
+
- Add `have_a_translated_flash` matcher
|
|
6
10
|
|
|
7
11
|
## Version 0.1.0
|
|
8
12
|
|
|
9
|
-
-
|
|
13
|
+
- Initial commit with matchers:
|
|
10
14
|
- `have_a_translated_attribute`
|
|
11
15
|
- `have_a_translated_error`
|
|
12
16
|
- `have_a_translated_model`
|
data/README.md
CHANGED
|
@@ -38,14 +38,15 @@ Or install it yourself with `gem install ndd-rspec-rails`
|
|
|
38
38
|
|
|
39
39
|
## Usage
|
|
40
40
|
|
|
41
|
-
###
|
|
41
|
+
### Controller matchers
|
|
42
|
+
|
|
43
|
+
- `have_a_translated_flash`: ensure that a flash message has an associated translation ([documentation](http://www.rubydoc.info/gems/ndd-rspec-rails/Ndd%2FRSpec%2FRails%2FMatchers%2FController:have_a_translated_flash));
|
|
42
44
|
|
|
43
|
-
|
|
44
|
-
for more details.
|
|
45
|
+
### Model matchers
|
|
45
46
|
|
|
46
|
-
- `have_a_translated_attribute`: ensure that a model has an associated translation;
|
|
47
|
-
- `have_a_translated_error`: ensure that an error on a model or an attribute has an associated translation
|
|
48
|
-
- `have_a_translated_model`: ensure that an attribute has an associated translation;
|
|
47
|
+
- `have_a_translated_attribute`: ensure that a model has an associated translation ([documentation](http://www.rubydoc.info/gems/ndd-rspec-rails/Ndd%2FRSpec%2FRails%2FMatchers%2FModel:have_a_translated_attribute));
|
|
48
|
+
- `have_a_translated_error`: ensure that an error on a model or an attribute has an associated translation ([documentation](http://www.rubydoc.info/gems/ndd-rspec-rails/Ndd%2FRSpec%2FRails%2FMatchers%2FModel:have_a_translated_error));
|
|
49
|
+
- `have_a_translated_model`: ensure that an attribute has an associated translation ([documentation](http://www.rubydoc.info/gems/ndd-rspec-rails/Ndd%2FRSpec%2FRails%2FMatchers%2FModel:have_a_translated_model));
|
|
49
50
|
|
|
50
51
|
## Development
|
|
51
52
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ndd-rspec-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David DIDIER
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-05-
|
|
11
|
+
date: 2017-05-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|