racatt 0.0.3 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +6 -0
- data/lib/racatt.rb +5 -10
- data/lib/racatt/version.rb +1 -1
- metadata +2 -2
data/History.rdoc
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
=== Version 1.0.0 / 2016-01-27
|
2
|
+
|
3
|
+
* Separate argument lists can be given to the RSpec and Cucumber tasks instead of having to use the same arguments for both.
|
4
|
+
* There are no default arguments used by either the RSpec or the Cucumber task. Only the arguments that are provided are used.
|
5
|
+
|
6
|
+
|
1
7
|
=== Version 0.0.3 / 2016-01-20
|
2
8
|
|
3
9
|
* Bug fix: Fixed a task scoping bug where the combined Rake task would only work if the gem's tasks were created inside of a namespace.
|
data/lib/racatt.rb
CHANGED
@@ -13,17 +13,13 @@ module Racatt
|
|
13
13
|
ENV['CUCUMBER_OPTS'] = options
|
14
14
|
end
|
15
15
|
|
16
|
-
def self.combine_options(set_1, set_2)
|
17
|
-
set_2 ? "#{set_1} #{set_2}" : set_1
|
18
|
-
end
|
19
|
-
|
20
16
|
def self.create_tasks
|
21
17
|
current_scope = Rake.application.current_scope.path
|
22
18
|
|
23
19
|
namespace 'cucumber' do
|
24
20
|
desc 'Run all of the Cucumber features'
|
25
21
|
task :features, [:command_options] do |_t, args|
|
26
|
-
set_cucumber_options(
|
22
|
+
set_cucumber_options(args[:command_options]) if args[:command_options]
|
27
23
|
end
|
28
24
|
Cucumber::Rake::Task.new(:features)
|
29
25
|
end
|
@@ -31,17 +27,16 @@ module Racatt
|
|
31
27
|
namespace 'rspec' do
|
32
28
|
desc 'Run all of the RSpec specifications'
|
33
29
|
RSpec::Core::RakeTask.new(:specs, :command_options) do |t, args|
|
34
|
-
t.rspec_opts =
|
35
|
-
t.rspec_opts << args[:command_options] if args[:command_options]
|
30
|
+
t.rspec_opts = args[:command_options] if args[:command_options]
|
36
31
|
end
|
37
32
|
end
|
38
33
|
|
39
34
|
desc 'Test All The Things!'
|
40
|
-
task :test_everything, [:
|
35
|
+
task :test_everything, [:rspec_command_options, :cucumber_command_options] do |_t, args|
|
41
36
|
scope_string = current_scope.empty? ? '' : "#{current_scope}:"
|
42
37
|
|
43
|
-
Rake::Task["#{scope_string}rspec:specs"].invoke(args[:
|
44
|
-
Rake::Task["#{scope_string}cucumber:features"].invoke(args[:
|
38
|
+
Rake::Task["#{scope_string}rspec:specs"].invoke(args[:rspec_command_options])
|
39
|
+
Rake::Task["#{scope_string}cucumber:features"].invoke(args[:cucumber_command_options])
|
45
40
|
end
|
46
41
|
|
47
42
|
end
|
data/lib/racatt/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: racatt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-01-
|
12
|
+
date: 2016-01-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cucumber
|