cavalle-pickle 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/generators/acceptance_spec/USAGE +0 -0
- data/generators/acceptance_spec/acceptance_spec_generator.rb +9 -0
- data/generators/acceptance_spec/templates/acceptance_spec.rb +13 -0
- data/generators/pickle/USAGE +8 -0
- data/generators/pickle/pickle_generator.rb +10 -0
- data/generators/pickle/templates/acceptance_helper.rb +10 -0
- data/generators/pickle/templates/helpers.rb +4 -0
- data/generators/pickle/templates/paths.rb +7 -0
- metadata +9 -1
File without changes
|
@@ -0,0 +1,9 @@
|
|
1
|
+
class AcceptanceSpecGenerator < Rails::Generator::NamedBase
|
2
|
+
def manifest
|
3
|
+
record do |m|
|
4
|
+
m.directory File.join('spec/acceptance', class_path)
|
5
|
+
file_name.gsub!(/_spec$/,"")
|
6
|
+
m.template 'acceptance_spec.rb', File.join('spec/acceptance', class_path, "#{file_name}_spec.rb")
|
7
|
+
end
|
8
|
+
end
|
9
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
class PickleGenerator < Rails::Generator::Base
|
2
|
+
def manifest
|
3
|
+
record do |m|
|
4
|
+
m.directory 'spec/acceptance/support'
|
5
|
+
m.file "acceptance_helper.rb", "spec/acceptance/acceptance_helper.rb"
|
6
|
+
m.file "helpers.rb", "spec/acceptance/support/helpers.rb"
|
7
|
+
m.file "paths.rb", "spec/acceptance/support/paths.rb"
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
require File.dirname(__FILE__) + "/../spec_helper"
|
2
|
+
require "pickle"
|
3
|
+
require "webrat"
|
4
|
+
|
5
|
+
Webrat.configure do |config|
|
6
|
+
config.mode = :rails
|
7
|
+
end
|
8
|
+
|
9
|
+
# Put your acceptance spec helpers inside /spec/acceptance/support
|
10
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cavalle-pickle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Luismi Cavall\xC3\xA9"
|
@@ -32,6 +32,14 @@ extra_rdoc_files:
|
|
32
32
|
- README.rdoc
|
33
33
|
files:
|
34
34
|
- README.rdoc
|
35
|
+
- generators/acceptance_spec/USAGE
|
36
|
+
- generators/acceptance_spec/acceptance_spec_generator.rb
|
37
|
+
- generators/acceptance_spec/templates/acceptance_spec.rb
|
38
|
+
- generators/pickle/USAGE
|
39
|
+
- generators/pickle/pickle_generator.rb
|
40
|
+
- generators/pickle/templates/acceptance_helper.rb
|
41
|
+
- generators/pickle/templates/helpers.rb
|
42
|
+
- generators/pickle/templates/paths.rb
|
35
43
|
- lib/pickle.rb
|
36
44
|
has_rdoc: false
|
37
45
|
homepage: http://github.com/cavalle/pickle
|