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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1192ef82b6d2f2ed8d3f53986fc3c4ad08d61f16
4
- data.tar.gz: abc1cf70bf660e96a478e140a7362f8444b5bcba
3
+ metadata.gz: e7bffb36a216048ed168e8e6f427a935f71b9b70
4
+ data.tar.gz: 1e7ed2db1d3ef8e21b35ad241b303973d01f27b3
5
5
  SHA512:
6
- metadata.gz: 5908679322a3a5cc18e17baa0edc580f1049726ac7c0132da5f7e0e431ef5a7d024ddea3e867c2fb309f52e9ee32af5124ba099d35622d3c51210c641e118cdb
7
- data.tar.gz: b995a437c9346f01cbbf4fc9d9e4d1680d3660fbeeb87620c79c83aebfc938b3790d74e15d63a5edaac7cbb5edb3917f2639bf90528226aaec0b7797a8d44341
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
@@ -13,7 +13,7 @@ module RSpec::Rake
13
13
 
14
14
  subject(:task) { Rake.application[self.class.top_level_description] }
15
15
 
16
- before(:all) do
16
+ before(:each) do
17
17
  metadata = self.class.metadata
18
18
  task_name = self.class.top_level_description
19
19
 
@@ -1,5 +1,5 @@
1
1
  module Rspec
2
2
  module Rake
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-rake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stas SUȘCOV