testing_your_legacy 0.1.1 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +5 -8
- data/lib/testing_your_legacy/version.rb +1 -1
- metadata +2 -3
- data/pkg/testing_your_legacy-0.1.0.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffaec5923937b70ab2ccc50bf9a0a66151df25a5
|
4
|
+
data.tar.gz: cf3b27027aac6cf34e1a2966a96f70289621ee85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 576c316840a575165c413deb9d039760e5bb23c720850820a0af82787624a76cc5da6589187284d08e848b3a21667ee5e6e6ffbe9d358376d259cf5ab8b22f1b
|
7
|
+
data.tar.gz: dc21dbdb664d66f9ff691341b632eec2a922e3cef809f331ff5659feb5b73e7bab59c86afb5c6e19117cfca35852175dc07029c8f3609334d23be1f2fbb3d66a
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -173,11 +173,15 @@ end
|
|
173
173
|
|
174
174
|
We run it, it seems to work, so now we can add this line, to check for the profile link on the home page:
|
175
175
|
|
176
|
-
|
176
|
+
```ruby
|
177
|
+
assert_select 'a[href=?]', "/user/profile/#{users(:good888).id}", {count: 1}
|
178
|
+
```
|
179
|
+
|
177
180
|
|
178
181
|
Then do a little refactoring, to break login into a reusable method, and finalize this test:
|
179
182
|
|
180
183
|
private login method:
|
184
|
+
|
181
185
|
```ruby
|
182
186
|
def login(login, p)
|
183
187
|
post '/user/login', user: { login: login , password: p }
|
@@ -209,10 +213,3 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/tnordl
|
|
209
213
|
## License
|
210
214
|
|
211
215
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
212
|
-
|
213
|
-
count defaults to 25, and controls the number of tests generated.
|
214
|
-
|
215
|
-
Results are generated on stdout, for maximum flexibility on where the tests are placed in the Rails application.
|
216
|
-
|
217
|
-
Here are some examples on how to modify the generated templates, for your application.
|
218
|
-
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testing_your_legacy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Timothy Nordloh
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sumo-search
|
@@ -92,7 +92,6 @@ files:
|
|
92
92
|
- lib/testing_your_legacy/testing_your_legacy.rb
|
93
93
|
- lib/testing_your_legacy/version.rb
|
94
94
|
- pkg/testing_your_legacy-0.0.1.gem
|
95
|
-
- pkg/testing_your_legacy-0.1.0.gem
|
96
95
|
- testing_your_legacy.gemspec
|
97
96
|
homepage: https://github.com/tnordloh/testing_your_legacy
|
98
97
|
licenses:
|
Binary file
|