rspec-rake 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -0
- data/lib/rspec/rake/example_group.rb +1 -1
- data/lib/rspec/rake/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7bffb36a216048ed168e8e6f427a935f71b9b70
|
4
|
+
data.tar.gz: 1e7ed2db1d3ef8e21b35ad241b303973d01f27b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0ffe0a90b6b5766d56762ef8dc6d9e69dc7b10b13c81b231d8e052936dde7dde63ec5ed0bc8bdf75da3a46f6e7d2c6ac5ce37ad993953cd820fa128dad023cf
|
7
|
+
data.tar.gz: 1ac06046bc40640be6da7d9bad556f268d31b1a10f4b3bc2026da9a66961ef5380f5b8ba81f1fca1019ae8044084316832a8e2b2ea33fe9d1dbddcda0df16230
|
data/README.md
CHANGED
@@ -36,9 +36,16 @@ You can manually specify the rake file location and file name by using metadata:
|
|
36
36
|
describe 'task:subtask', :rakefile => 'my_task' do
|
37
37
|
# Spot the :rakefile metadata value
|
38
38
|
# This will tell `RSpec::Test` to load `lib/tasks/my_task.rake`
|
39
|
+
|
40
|
+
it 'does something' do
|
41
|
+
task.invoke
|
42
|
+
end
|
39
43
|
end
|
40
44
|
```
|
41
45
|
|
46
|
+
As you can see the subject of the test is the task with the name from example description.
|
47
|
+
You can also refer to the subject as `task`.
|
48
|
+
|
42
49
|
```ruby
|
43
50
|
describe 'task:subtask', :rakefile => 'my_task', :tasks_path => 'lib/capistrano/tasks' do
|
44
51
|
# Same with the :tasks_path metadata value
|
data/lib/rspec/rake/version.rb
CHANGED