steak 1.0.0.beta.1 → 1.0.0.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/lib/rspec-2/rails/generators/install_generator.rb +0 -1
- metadata +4 -13
- data/lib/rspec-1/rails/generators/acceptance_spec/USAGE +0 -1
- data/lib/rspec-1/rails/generators/acceptance_spec/acceptance_spec_generator.rb +0 -9
- data/lib/rspec-1/rails/generators/acceptance_spec/templates/acceptance_spec.rb +0 -12
- data/lib/rspec-1/rails/generators/steak/USAGE +0 -8
- data/lib/rspec-1/rails/generators/steak/steak_generator.rb +0 -26
- data/lib/rspec-1/rails/generators/steak/templates/acceptance_helper.rb +0 -18
- data/lib/rspec-1/rails/generators/steak/templates/helpers.rb +0 -5
- data/lib/rspec-1/rails/generators/steak/templates/paths.rb +0 -9
- data/lib/rspec-1/rails/generators/steak/templates/steak.rake +0 -19
data/README.rdoc
CHANGED
@@ -101,7 +101,7 @@ Add this to your project's <tt>Gemfile</tt>:
|
|
101
101
|
|
102
102
|
group :development, :test do
|
103
103
|
gem 'rspec-rails', '>= 2.0.0.beta.19'
|
104
|
-
gem 'steak',
|
104
|
+
gem 'steak', '>= 1.0.0.beta.1'
|
105
105
|
gem 'capybara'
|
106
106
|
|
107
107
|
# Other usual suspects:
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: steak
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 62196359
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
9
|
- 0
|
10
10
|
- beta
|
11
|
-
-
|
12
|
-
version: 1.0.0.beta.
|
11
|
+
- 2
|
12
|
+
version: 1.0.0.beta.2
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- "Luismi Cavall\xC3\xA9"
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2010-09-
|
20
|
+
date: 2010-09-21 00:00:00 +02:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -122,15 +122,6 @@ files:
|
|
122
122
|
- MIT-LICENSE
|
123
123
|
- Rakefile
|
124
124
|
- README.rdoc
|
125
|
-
- lib/rspec-1/rails/generators/acceptance_spec/acceptance_spec_generator.rb
|
126
|
-
- lib/rspec-1/rails/generators/acceptance_spec/templates/acceptance_spec.rb
|
127
|
-
- lib/rspec-1/rails/generators/acceptance_spec/USAGE
|
128
|
-
- lib/rspec-1/rails/generators/steak/steak_generator.rb
|
129
|
-
- lib/rspec-1/rails/generators/steak/templates/acceptance_helper.rb
|
130
|
-
- lib/rspec-1/rails/generators/steak/templates/helpers.rb
|
131
|
-
- lib/rspec-1/rails/generators/steak/templates/paths.rb
|
132
|
-
- lib/rspec-1/rails/generators/steak/templates/steak.rake
|
133
|
-
- lib/rspec-1/rails/generators/steak/USAGE
|
134
125
|
- lib/rspec-1/steak.rb
|
135
126
|
- lib/rspec-2/rails/generators/install_generator.rb
|
136
127
|
- lib/rspec-2/rails/generators/spec_generator.rb
|
@@ -1 +0,0 @@
|
|
1
|
-
s
|
@@ -1,9 +0,0 @@
|
|
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
|
@@ -1,8 +0,0 @@
|
|
1
|
-
Description:
|
2
|
-
Sets up Steak in your Rails project. This will generate the spec/acceptance directory
|
3
|
-
and the necessary files.
|
4
|
-
|
5
|
-
If you haven't already, You should also run `./script/generate rspec` to complete the set up.
|
6
|
-
|
7
|
-
Examples:
|
8
|
-
`./script/generate steak`
|
@@ -1,26 +0,0 @@
|
|
1
|
-
class SteakGenerator < Rails::Generator::Base
|
2
|
-
default_options :driver => 'capybara'
|
3
|
-
|
4
|
-
def initialize(runtime_args, runtime_options = {})
|
5
|
-
puts "Defaulting to Capybara..." if runtime_args.empty?
|
6
|
-
super
|
7
|
-
end
|
8
|
-
|
9
|
-
def manifest
|
10
|
-
record do |m|
|
11
|
-
m.directory 'spec/acceptance/support'
|
12
|
-
m.directory 'lib/tasks'
|
13
|
-
m.template "acceptance_helper.rb", "spec/acceptance/acceptance_helper.rb"
|
14
|
-
m.file "helpers.rb", "spec/acceptance/support/helpers.rb"
|
15
|
-
m.file "paths.rb", "spec/acceptance/support/paths.rb"
|
16
|
-
m.file "steak.rake", "lib/tasks/steak.rake"
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
def add_options!(opt)
|
21
|
-
opt.separator ''
|
22
|
-
opt.separator 'Options:'
|
23
|
-
opt.on('--capybara', 'Use Capybara (default).') { |v| options[:driver] = 'capybara' }
|
24
|
-
opt.on('--webrat', 'Use Webrat.') { |v| options[:driver] = 'webrat' }
|
25
|
-
end
|
26
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
require File.dirname(__FILE__) + "/../spec_helper"
|
2
|
-
require "steak"
|
3
|
-
<%- if options[:driver] == 'webrat' %>
|
4
|
-
require "webrat"
|
5
|
-
|
6
|
-
Webrat.configure do |config|
|
7
|
-
config.mode = :rails
|
8
|
-
end
|
9
|
-
<%- else -%>
|
10
|
-
require 'capybara/rails'
|
11
|
-
|
12
|
-
Spec::Runner.configure do |config|
|
13
|
-
config.include Capybara
|
14
|
-
end
|
15
|
-
<%- end -%>
|
16
|
-
|
17
|
-
# Put your acceptance spec helpers inside /spec/acceptance/support
|
18
|
-
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
unless ARGV.any? {|a| a =~ /^gems/} # Don't load anything when running the gems:* tasks
|
2
|
-
|
3
|
-
require 'spec/rake/spectask'
|
4
|
-
|
5
|
-
namespace :spec do
|
6
|
-
desc "Run the code examples in spec/acceptance"
|
7
|
-
Spec::Rake::SpecTask.new(:acceptance => "db:test:prepare") do |t|
|
8
|
-
t.spec_opts = ['--options', "\"#{RAILS_ROOT}/spec/spec.opts\""]
|
9
|
-
t.spec_files = FileList["spec/acceptance/**/*_spec.rb"]
|
10
|
-
end
|
11
|
-
|
12
|
-
# Setup stats to include acceptance specs
|
13
|
-
task :statsetup do
|
14
|
-
require 'code_statistics'
|
15
|
-
::STATS_DIRECTORIES << %w(Acceptance\ specs spec/acceptance) if File.exist?('spec/acceptance')
|
16
|
-
::CodeStatistics::TEST_TYPES << "Acceptance specs" if File.exist?('spec/acceptance')
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|