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.
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,13 @@
1
+ require File.dirname(__FILE__) + '/acceptance_helper'
2
+
3
+ feature "Feature name", %q{
4
+ In order to ...
5
+ As a ...
6
+ I want to ...
7
+ } do
8
+
9
+ scenario "Scenario name" do
10
+ true.should == true
11
+ end
12
+
13
+ end
@@ -0,0 +1,8 @@
1
+ Description:
2
+ Sets up Pickle in your Rails project. This will generate the spec/acceptance directory
3
+ and the necessary files.
4
+
5
+ You should also run `./script/generate rspec` to complete the set up.
6
+
7
+ Examples:
8
+ `./script/generate pickle`
@@ -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}
@@ -0,0 +1,4 @@
1
+ module HelperMethods
2
+ end
3
+
4
+ Spec::Runner.configuration.include(HelperMethods)
@@ -0,0 +1,7 @@
1
+ module NavigationHelpers
2
+ def homepage
3
+ "/"
4
+ end
5
+ end
6
+
7
+ Spec::Runner.configuration.include(NavigationHelpers)
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.0
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