named_let 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +4 -1
- data/lib/named_let/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
named_let
|
2
2
|
==================================
|
3
3
|
|
4
|
-
The `named_let can be used to make the rspec's output easier to read.
|
4
|
+
The `named_let` can be used to make the rspec's output easier to read.
|
5
5
|
It's wrapper function of `let`.
|
6
6
|
|
7
7
|
`named_let(:name){ obj }` changes the value which returns 'obj#to_s' and
|
@@ -9,6 +9,9 @@ It's wrapper function of `let`.
|
|
9
9
|
|
10
10
|
# Usage
|
11
11
|
|
12
|
+
add `require 'named_let'` to your spec_helper.rb or * _spec.rb.
|
13
|
+
|
14
|
+
|
12
15
|
describe 'named_let' do
|
13
16
|
context 'symbol only' do
|
14
17
|
named_let(:foo) { Object.new }
|
data/lib/named_let/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: named_let
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tomohito Ozaki
|