cucumber_monitor 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/config/cucumber.yml +8 -0
- data/config/locales/cucumber_monitor_views.yml +3 -3
- data/lib/cucumber_monitor/base.rb +6 -2
- data/lib/cucumber_monitor/version.rb +1 -1
- data/lib/cucumber_monitor.rb +17 -0
- data/test/cucumber_monitor_test.rb +8 -0
- data/test/dummy/config/cucumber.yml +8 -0
- data/test/dummy/config/database.yml +4 -1
- data/test/dummy/features/administration.feature +10 -0
- data/test/dummy/features/change_my_data.feature +23 -0
- data/test/dummy/features/support/env.rb +59 -0
- data/test/dummy/lib/tasks/cucumber.rake +65 -0
- data/test/dummy/log/development.log +2 -0
- data/test/dummy/log/test.log +96 -382
- data/test/dummy/script/cucumber +10 -0
- data/test/feature_file_test.rb +1 -1
- data/test/setup.rb +16 -0
- metadata +18 -5
- data/test/dummy/db/development.sqlite3 +0 -0
@@ -0,0 +1,10 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
vendored_cucumber_bin = Dir["#{File.dirname(__FILE__)}/../vendor/{gems,plugins}/cucumber*/bin/cucumber"].first
|
4
|
+
if vendored_cucumber_bin
|
5
|
+
load File.expand_path(vendored_cucumber_bin)
|
6
|
+
else
|
7
|
+
require 'rubygems' unless ENV['NO_RUBYGEMS']
|
8
|
+
require 'cucumber'
|
9
|
+
load Cucumber::BINARY
|
10
|
+
end
|
data/test/feature_file_test.rb
CHANGED
data/test/setup.rb
CHANGED
@@ -3,5 +3,21 @@ class Test::Unit::TestCase
|
|
3
3
|
@cucumber = CucumberMonitor.new
|
4
4
|
@feature_one = @cucumber.features.first
|
5
5
|
@feature_two = @cucumber.features.last
|
6
|
+
@path = CucumberMonitor.path
|
7
|
+
@root = CucumberMonitor::Engine.root
|
8
|
+
copy_sample_features
|
9
|
+
end
|
10
|
+
|
11
|
+
def uninstall_cucumber_rails
|
12
|
+
File.delete("#{@path}/script/cucumber") if File.exist?("#{@path}/script/cucumber")
|
13
|
+
FileUtils.rm_rf("#{@path}/features") if Dir.exist?("#{@path}/features")
|
14
|
+
File.delete("#{@path}/lib/tasks/cucumber.rake") if File.exist?("#{@path}/lib/tasks/cucumber.rake")
|
15
|
+
config = YAML.load_file("#{@path}/config/database.yml")
|
16
|
+
config.delete("cucumber") if config.has_key?("cucumber")
|
17
|
+
end
|
18
|
+
|
19
|
+
def copy_sample_features
|
20
|
+
FileUtils.cp("#{@root}/features/administration.feature","#{@path}/features/administration.feature")
|
21
|
+
FileUtils.cp("#{@root}/features/change_my_data.feature","#{@path}/features/change_my_data.feature")
|
6
22
|
end
|
7
23
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber_monitor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
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: 2012-09-
|
12
|
+
date: 2012-09-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -60,6 +60,7 @@ files:
|
|
60
60
|
- app/views/cucumber_monitor/search.html.erb
|
61
61
|
- app/views/cucumber_monitor/show_feature.html.erb
|
62
62
|
- app/views/layouts/cucumber_monitor.html.erb
|
63
|
+
- config/cucumber.yml
|
63
64
|
- config/locales/cucumber_monitor.yml
|
64
65
|
- config/locales/cucumber_monitor_views.yml
|
65
66
|
- config/routes.rb
|
@@ -88,6 +89,7 @@ files:
|
|
88
89
|
- test/dummy/app/views/layouts/application.html.erb
|
89
90
|
- test/dummy/config/application.rb
|
90
91
|
- test/dummy/config/boot.rb
|
92
|
+
- test/dummy/config/cucumber.yml
|
91
93
|
- test/dummy/config/database.yml
|
92
94
|
- test/dummy/config/environment.rb
|
93
95
|
- test/dummy/config/environments/development.rb
|
@@ -102,8 +104,12 @@ files:
|
|
102
104
|
- test/dummy/config/locales/en.yml
|
103
105
|
- test/dummy/config/routes.rb
|
104
106
|
- test/dummy/config.ru
|
105
|
-
- test/dummy/db/development.sqlite3
|
106
107
|
- test/dummy/db/test.sqlite3
|
108
|
+
- test/dummy/features/administration.feature
|
109
|
+
- test/dummy/features/change_my_data.feature
|
110
|
+
- test/dummy/features/support/env.rb
|
111
|
+
- test/dummy/lib/tasks/cucumber.rake
|
112
|
+
- test/dummy/log/development.log
|
107
113
|
- test/dummy/log/test.log
|
108
114
|
- test/dummy/public/404.html
|
109
115
|
- test/dummy/public/422.html
|
@@ -111,6 +117,7 @@ files:
|
|
111
117
|
- test/dummy/public/favicon.ico
|
112
118
|
- test/dummy/Rakefile
|
113
119
|
- test/dummy/README.rdoc
|
120
|
+
- test/dummy/script/cucumber
|
114
121
|
- test/dummy/script/rails
|
115
122
|
- test/feature_file_test.rb
|
116
123
|
- test/integration/navigation_test.rb
|
@@ -138,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
145
|
version: '0'
|
139
146
|
requirements: []
|
140
147
|
rubyforge_project:
|
141
|
-
rubygems_version: 1.8.
|
148
|
+
rubygems_version: 1.8.24
|
142
149
|
signing_key:
|
143
150
|
specification_version: 3
|
144
151
|
summary: Puts your features in a highlighted position. Adds a dashboard for viewing,
|
@@ -154,6 +161,7 @@ test_files:
|
|
154
161
|
- test/dummy/app/views/layouts/application.html.erb
|
155
162
|
- test/dummy/config/application.rb
|
156
163
|
- test/dummy/config/boot.rb
|
164
|
+
- test/dummy/config/cucumber.yml
|
157
165
|
- test/dummy/config/database.yml
|
158
166
|
- test/dummy/config/environment.rb
|
159
167
|
- test/dummy/config/environments/development.rb
|
@@ -168,8 +176,12 @@ test_files:
|
|
168
176
|
- test/dummy/config/locales/en.yml
|
169
177
|
- test/dummy/config/routes.rb
|
170
178
|
- test/dummy/config.ru
|
171
|
-
- test/dummy/db/development.sqlite3
|
172
179
|
- test/dummy/db/test.sqlite3
|
180
|
+
- test/dummy/features/administration.feature
|
181
|
+
- test/dummy/features/change_my_data.feature
|
182
|
+
- test/dummy/features/support/env.rb
|
183
|
+
- test/dummy/lib/tasks/cucumber.rake
|
184
|
+
- test/dummy/log/development.log
|
173
185
|
- test/dummy/log/test.log
|
174
186
|
- test/dummy/public/404.html
|
175
187
|
- test/dummy/public/422.html
|
@@ -177,6 +189,7 @@ test_files:
|
|
177
189
|
- test/dummy/public/favicon.ico
|
178
190
|
- test/dummy/Rakefile
|
179
191
|
- test/dummy/README.rdoc
|
192
|
+
- test/dummy/script/cucumber
|
180
193
|
- test/dummy/script/rails
|
181
194
|
- test/feature_file_test.rb
|
182
195
|
- test/integration/navigation_test.rb
|
File without changes
|