steak 0.4.0.beta.1 → 1.0.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +94 -48
- data/Rakefile +1 -1
- data/lib/rspec-1/rails/generators/acceptance_spec/USAGE +1 -0
- data/lib/rspec-1/rails/generators/acceptance_spec/acceptance_spec_generator.rb +9 -0
- data/lib/{generators → rspec-1/rails/generators}/acceptance_spec/templates/acceptance_spec.rb +2 -3
- data/lib/{generators → rspec-1/rails/generators}/steak/USAGE +4 -4
- data/lib/rspec-1/rails/generators/steak/steak_generator.rb +26 -0
- data/lib/rspec-1/rails/generators/steak/templates/acceptance_helper.rb +18 -0
- data/lib/rspec-1/rails/generators/steak/templates/helpers.rb +5 -0
- data/lib/rspec-1/rails/generators/steak/templates/paths.rb +9 -0
- data/lib/rspec-1/rails/generators/steak/templates/steak.rake +19 -0
- data/lib/rspec-1/steak.rb +23 -0
- data/lib/rspec-2/rails/generators/install_generator.rb +39 -0
- data/lib/rspec-2/rails/generators/spec_generator.rb +33 -0
- data/lib/{generators/steak → rspec-2/rails/generators}/templates/acceptance_helper.rb +8 -10
- data/lib/rspec-2/rails/generators/templates/acceptance_spec.rb +12 -0
- data/lib/rspec-2/rails/generators/templates/helpers.rb +5 -0
- data/lib/rspec-2/rails/generators/templates/paths.rb +9 -0
- data/lib/rspec-2/rails/railtie.rb +14 -0
- data/lib/{generators/steak/templates → rspec-2/rails/tasks}/steak.rake +2 -2
- data/lib/rspec-2/steak.rb +22 -0
- data/lib/steak.rb +8 -10
- data/spec/acceptance/rspec-1/acceptance_helper.rb +95 -0
- data/spec/acceptance/{acceptance_spec_generator_spec.rb → rspec-1/acceptance_spec_generator_spec.rb} +14 -15
- data/spec/acceptance/{basic_spec.rb → rspec-1/basic_spec.rb} +7 -8
- data/spec/acceptance/{rails_spec.rb → rspec-1/rails_spec.rb} +10 -12
- data/spec/acceptance/{steak_generator_spec.rb → rspec-1/steak_generator_spec.rb} +22 -26
- data/spec/acceptance/rspec-2/acceptance_helper.rb +87 -0
- data/spec/acceptance/rspec-2/basic_spec.rb +78 -0
- data/spec/acceptance/rspec-2/rails_spec.rb +89 -0
- data/spec/acceptance/rspec-2/steak_install_generator_spec.rb +66 -0
- data/spec/acceptance/rspec-2/steak_spec_generator_spec.rb +63 -0
- metadata +112 -26
- data/init.rb +0 -8
- data/lib/generators/acceptance_spec/USAGE +0 -0
- data/lib/generators/acceptance_spec/acceptance_spec_generator.rb +0 -13
- data/lib/generators/steak/steak_generator.rb +0 -29
- data/lib/generators/steak/templates/helpers.rb +0 -6
- data/lib/generators/steak/templates/paths.rb +0 -9
- data/spec/acceptance/acceptance_helper.rb +0 -76
@@ -0,0 +1,87 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rspec'
|
3
|
+
require File.dirname(__FILE__) + "/../../../lib/steak"
|
4
|
+
require 'tempfile'
|
5
|
+
|
6
|
+
module RSpec_2
|
7
|
+
module Factories
|
8
|
+
def create_spec(options)
|
9
|
+
options = {:content => options} unless options.is_a?(Hash)
|
10
|
+
path = (options[:path] || Dir.tmpdir) + "/#{String.random}_spec.rb"
|
11
|
+
File.open(path, "w") do |file|
|
12
|
+
file.write options[:content]
|
13
|
+
end
|
14
|
+
path
|
15
|
+
end
|
16
|
+
|
17
|
+
def create_rails_app(options = {})
|
18
|
+
path = File.join(Dir.tmpdir, String.random, "rails_app")
|
19
|
+
FileUtils.rm_rf path
|
20
|
+
run "rails new #{path}"
|
21
|
+
FileUtils.rm_rf path + '/public/index.html'
|
22
|
+
File.open(File.join(path, "Gemfile"), "a") do |file|
|
23
|
+
file.write "\ngem 'rspec-rails', '>= 2.0.0.a9'\n" <<
|
24
|
+
"gem 'capybara'\n" <<
|
25
|
+
"gem 'webrat'\n"
|
26
|
+
end
|
27
|
+
|
28
|
+
File.open(File.join(path, "Gemfile"), "a") do |file|
|
29
|
+
file.write "\ngem 'steak', :path => '#{File.expand_path(File.dirname(__FILE__) + '/../../..')}'\n"
|
30
|
+
end
|
31
|
+
|
32
|
+
run "bundle install"
|
33
|
+
|
34
|
+
Dir.chdir path do
|
35
|
+
run "rails generate rspec:install"
|
36
|
+
if options[:scaffold]
|
37
|
+
run "rails generate scaffold #{options[:scaffold]}"
|
38
|
+
run "rake db:migrate db:test:prepare"
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
unless options[:setup_steak] == false
|
43
|
+
Dir.chdir path do
|
44
|
+
run "rails generate steak:install"
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
path
|
49
|
+
end
|
50
|
+
|
51
|
+
end
|
52
|
+
|
53
|
+
module HelperMethods
|
54
|
+
def run(cmd)
|
55
|
+
`#{cmd} 2>&1`.tap do |o|
|
56
|
+
puts o if ENV['TRACE']
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
def run_spec(file_path, app_base=nil)
|
61
|
+
if app_base
|
62
|
+
current_dir = Dir.pwd
|
63
|
+
Dir.chdir app_base
|
64
|
+
end
|
65
|
+
|
66
|
+
output = run("rspec #{file_path}")
|
67
|
+
|
68
|
+
Dir.chdir current_dir if app_base
|
69
|
+
output
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
RSpec.configure do |config|
|
74
|
+
config.include Factories, :example_group => {:file_path => /rspec-2/}
|
75
|
+
config.include HelperMethods, :example_group => {:file_path => /rspec-2/}
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
class String
|
80
|
+
unless const_defined?("CHARS")
|
81
|
+
CHARS = ('a'..'z').to_a + ('A'..'Z').to_a
|
82
|
+
end
|
83
|
+
|
84
|
+
def self.random(size = 8)
|
85
|
+
(0..size).map{ CHARS[rand(CHARS.length)] }.join
|
86
|
+
end
|
87
|
+
end
|
@@ -0,0 +1,78 @@
|
|
1
|
+
require File.dirname(__FILE__) + "/acceptance_helper.rb"
|
2
|
+
|
3
|
+
feature "Acceptance spec execution", %q{
|
4
|
+
In order to write better software
|
5
|
+
As a ruby developer
|
6
|
+
I want to execute acceptance specs
|
7
|
+
} do
|
8
|
+
|
9
|
+
scenario "Minimal acceptance spec" do
|
10
|
+
spec_file = create_spec <<-SPEC
|
11
|
+
require '#{File.dirname(__FILE__) + "/../../../lib/steak"}'
|
12
|
+
feature "Minimal spec" do
|
13
|
+
scenario "First scenario" do
|
14
|
+
true.should be_true
|
15
|
+
end
|
16
|
+
end
|
17
|
+
SPEC
|
18
|
+
output = run_spec spec_file
|
19
|
+
output.should =~ /1 example, 0 failures/
|
20
|
+
end
|
21
|
+
|
22
|
+
scenario "Minimal acceptance spec that fails" do
|
23
|
+
spec_file = create_spec <<-SPEC
|
24
|
+
require '#{File.dirname(__FILE__) + "/../../../lib/steak"}'
|
25
|
+
feature "Minimal spec" do
|
26
|
+
scenario "First scenario" do
|
27
|
+
true.should be_false
|
28
|
+
end
|
29
|
+
end
|
30
|
+
SPEC
|
31
|
+
output = run_spec spec_file
|
32
|
+
output.should =~ /1 example, 1 failure/
|
33
|
+
end
|
34
|
+
|
35
|
+
scenario "Acceptance spec with background" do
|
36
|
+
spec_file = create_spec <<-SPEC
|
37
|
+
require '#{File.dirname(__FILE__) + "/../../../lib/steak"}'
|
38
|
+
feature "Minimal spec" do
|
39
|
+
background do
|
40
|
+
@value = 17
|
41
|
+
end
|
42
|
+
scenario "First scenario" do
|
43
|
+
@value.should == 17
|
44
|
+
end
|
45
|
+
end
|
46
|
+
SPEC
|
47
|
+
output = run_spec spec_file
|
48
|
+
output.should =~ /1 example, 0 failures/
|
49
|
+
end
|
50
|
+
|
51
|
+
scenario "Acceptance spec metadata" do
|
52
|
+
spec_file = create_spec <<-SPEC
|
53
|
+
require '#{File.dirname(__FILE__) + "/../../../lib/steak"}'
|
54
|
+
feature "Minimal spec" do
|
55
|
+
scenario "should have acceptance metadata" do
|
56
|
+
example.metadata[:type].should == :acceptance
|
57
|
+
example.metadata[:steak].should be_true
|
58
|
+
end
|
59
|
+
end
|
60
|
+
SPEC
|
61
|
+
output = run_spec spec_file
|
62
|
+
output.should =~ /1 example, 0 failures/
|
63
|
+
end
|
64
|
+
|
65
|
+
scenario "Regular specs doesn't have acceptance metadata" do
|
66
|
+
spec_file = create_spec <<-SPEC
|
67
|
+
require '#{File.dirname(__FILE__) + "/../../../lib/steak"}'
|
68
|
+
describe "Regular spec" do
|
69
|
+
it "should not have acceptance metadata" do
|
70
|
+
example.metadata[:type].should_not == :acceptance
|
71
|
+
example.metadata[:steak].should_not be_true
|
72
|
+
end
|
73
|
+
end
|
74
|
+
SPEC
|
75
|
+
output = run_spec spec_file
|
76
|
+
output.should =~ /1 example, 0 failures/
|
77
|
+
end
|
78
|
+
end
|
@@ -0,0 +1,89 @@
|
|
1
|
+
require File.dirname(__FILE__) + "/acceptance_helper.rb"
|
2
|
+
|
3
|
+
feature "Acceptance spec execution", %q{
|
4
|
+
In order to write better web apps
|
5
|
+
As a rails developer
|
6
|
+
I want to execute acceptance specs
|
7
|
+
} do
|
8
|
+
|
9
|
+
scenario "Minimal acceptance spec" do
|
10
|
+
rails_app = create_rails_app
|
11
|
+
spec_file = create_spec :path => rails_app + "/spec/acceptance",
|
12
|
+
:content => <<-SPEC
|
13
|
+
require File.dirname(__FILE__) + "/acceptance_helper.rb"
|
14
|
+
feature "Minimal spec" do
|
15
|
+
scenario "First scenario" do
|
16
|
+
# Rails.env.should_not be_nil
|
17
|
+
::Rails.env.should == "test"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
SPEC
|
21
|
+
output = run_spec spec_file, File.join(File.dirname(spec_file), '../..')
|
22
|
+
output.should =~ /1 example, 0 failures/
|
23
|
+
end
|
24
|
+
|
25
|
+
scenario "Integration stuff" do
|
26
|
+
rails_app = create_rails_app
|
27
|
+
spec_file = create_spec :path => rails_app + "/spec/acceptance",
|
28
|
+
:content => <<-SPEC
|
29
|
+
require File.dirname(__FILE__) + "/acceptance_helper.rb"
|
30
|
+
feature "Minimal spec" do
|
31
|
+
scenario "First scenario" do
|
32
|
+
get "/"
|
33
|
+
response.should contain(/No route matches/)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
SPEC
|
37
|
+
output = run_spec spec_file, File.join(File.dirname(spec_file), '../..')
|
38
|
+
output.should =~ /1 example, 1 failure/
|
39
|
+
end
|
40
|
+
|
41
|
+
scenario "Path helpers are available" do
|
42
|
+
rails_app = create_rails_app
|
43
|
+
spec_file = create_spec :path => rails_app + "/spec/acceptance",
|
44
|
+
:content => <<-SPEC
|
45
|
+
require File.dirname(__FILE__) + "/acceptance_helper.rb"
|
46
|
+
feature "Minimal spec" do
|
47
|
+
scenario "First scenario" do
|
48
|
+
homepage.should == "/"
|
49
|
+
end
|
50
|
+
end
|
51
|
+
SPEC
|
52
|
+
output = run_spec spec_file, File.join(File.dirname(spec_file), '../..')
|
53
|
+
output.should =~ /1 example, 0 failures/
|
54
|
+
end
|
55
|
+
|
56
|
+
scenario "Running rake stats" do
|
57
|
+
rails_app = create_rails_app
|
58
|
+
|
59
|
+
Dir.chdir rails_app do
|
60
|
+
run "rails generate steak:install"
|
61
|
+
run("rake stats").should =~ /Acceptance specs/
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
scenario "Running specs with rake" do
|
66
|
+
rails_app = create_rails_app
|
67
|
+
|
68
|
+
spec_file = create_spec :path => rails_app + "/spec/acceptance",
|
69
|
+
:content => <<-SPEC
|
70
|
+
require File.dirname(__FILE__) + "/acceptance_helper.rb"
|
71
|
+
feature "Basic spec" do
|
72
|
+
scenario "First scenario" do
|
73
|
+
true.should == true
|
74
|
+
end
|
75
|
+
end
|
76
|
+
SPEC
|
77
|
+
|
78
|
+
Dir.chdir rails_app do
|
79
|
+
run "rake db:migrate db:test:prepare"
|
80
|
+
|
81
|
+
output = run("rake spec:acceptance")
|
82
|
+
output.should =~ /1 example, 0 failures/
|
83
|
+
|
84
|
+
output = run("rake")
|
85
|
+
output.should =~ /1 example, 0 failures/
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
require File.dirname(__FILE__) + "/acceptance_helper.rb"
|
2
|
+
|
3
|
+
feature "Steak generator for rails", %q{
|
4
|
+
In order to quickly start to hack my rails project with steak
|
5
|
+
As a developer
|
6
|
+
I want to run a generator that sets everything up for me
|
7
|
+
} do
|
8
|
+
|
9
|
+
scenario "Running generator in an empty project" do
|
10
|
+
|
11
|
+
rails_app = create_rails_app(:setup_steak => false)
|
12
|
+
|
13
|
+
Dir.chdir rails_app do
|
14
|
+
run "rails generate steak:install"
|
15
|
+
end
|
16
|
+
|
17
|
+
File.exist?(rails_app + "/spec/acceptance/acceptance_helper.rb").should be_true
|
18
|
+
File.exist?(rails_app + "/spec/acceptance/support/helpers.rb").should be_true
|
19
|
+
File.exist?(rails_app + "/spec/acceptance/support/paths.rb").should be_true
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
scenario "Running generator with capybara by default" do
|
24
|
+
rails_app = create_rails_app(:setup_steak => false, :scaffold => :users)
|
25
|
+
|
26
|
+
Dir.chdir rails_app do
|
27
|
+
run "rails generate steak:install"
|
28
|
+
end
|
29
|
+
|
30
|
+
spec_file = create_spec :path => rails_app + "/spec/acceptance",
|
31
|
+
:content => <<-SPEC
|
32
|
+
require File.dirname(__FILE__) + "/acceptance_helper.rb"
|
33
|
+
feature "Capybara spec" do
|
34
|
+
scenario "First scenario" do
|
35
|
+
visit "/users"
|
36
|
+
page.should have_content('Listing users')
|
37
|
+
end
|
38
|
+
end
|
39
|
+
SPEC
|
40
|
+
output = run_spec spec_file, rails_app
|
41
|
+
output.should =~ /1 example, 0 failures/
|
42
|
+
end
|
43
|
+
|
44
|
+
scenario "Running generator with webrat" do
|
45
|
+
rails_app = create_rails_app(:setup_steak => false, :scaffold => :users)
|
46
|
+
|
47
|
+
Dir.chdir rails_app do
|
48
|
+
run "rails generate steak:install --webrat"
|
49
|
+
end
|
50
|
+
|
51
|
+
spec_file = create_spec :path => rails_app + "/spec/acceptance",
|
52
|
+
:content => <<-SPEC
|
53
|
+
require File.dirname(__FILE__) + "/acceptance_helper.rb"
|
54
|
+
feature "Webrat spec" do
|
55
|
+
scenario "First scenario" do
|
56
|
+
visit "/users"
|
57
|
+
response_body.should contain('Listing users')
|
58
|
+
end
|
59
|
+
end
|
60
|
+
SPEC
|
61
|
+
|
62
|
+
output = run_spec spec_file, rails_app
|
63
|
+
output.should =~ /1 example, 0 failures/
|
64
|
+
end
|
65
|
+
|
66
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
require File.dirname(__FILE__) + "/acceptance_helper.rb"
|
2
|
+
|
3
|
+
feature "Acceptance spec generator for rails", %q{
|
4
|
+
In order to quickly add a new acceptance spec
|
5
|
+
As a developer
|
6
|
+
I want to run a generator that creates it for me
|
7
|
+
} do
|
8
|
+
|
9
|
+
background do
|
10
|
+
@rails_app = create_rails_app
|
11
|
+
end
|
12
|
+
|
13
|
+
scenario "Adding new acceptance spec" do
|
14
|
+
Dir.chdir @rails_app do
|
15
|
+
run "rails generate steak:spec document_creation"
|
16
|
+
end
|
17
|
+
|
18
|
+
File.exist?(
|
19
|
+
@rails_app + "/spec/acceptance/document_creation_spec.rb"
|
20
|
+
).should be_true
|
21
|
+
end
|
22
|
+
|
23
|
+
scenario "Adding new acceptance spec (plural name)" do
|
24
|
+
Dir.chdir @rails_app do
|
25
|
+
run "rails generate steak:spec creating_documents"
|
26
|
+
end
|
27
|
+
|
28
|
+
File.exist?(
|
29
|
+
@rails_app + "/spec/acceptance/creating_documents_spec.rb"
|
30
|
+
).should be_true
|
31
|
+
end
|
32
|
+
|
33
|
+
scenario "Adding new acceptance spec (pascalized name)" do
|
34
|
+
Dir.chdir @rails_app do
|
35
|
+
run "rails generate steak:spec DocumentCreation"
|
36
|
+
end
|
37
|
+
|
38
|
+
File.exist?(
|
39
|
+
@rails_app + "/spec/acceptance/document_creation_spec.rb"
|
40
|
+
).should be_true
|
41
|
+
end
|
42
|
+
|
43
|
+
scenario "Adding new acceptance spec (name ending with _spec)" do
|
44
|
+
Dir.chdir @rails_app do
|
45
|
+
run "rails generate steak:spec document_creation_spec"
|
46
|
+
end
|
47
|
+
|
48
|
+
File.exist?(
|
49
|
+
@rails_app + "/spec/acceptance/document_creation_spec.rb"
|
50
|
+
).should be_true
|
51
|
+
end
|
52
|
+
|
53
|
+
scenario "Adding new acceptance spec (namespaced)" do
|
54
|
+
Dir.chdir @rails_app do
|
55
|
+
run "rails generate steak:spec document/creation_spec"
|
56
|
+
end
|
57
|
+
|
58
|
+
file_path = @rails_app + "/spec/acceptance/document/creation_spec.rb"
|
59
|
+
|
60
|
+
File.exist?(file_path).should be_true
|
61
|
+
File.read(file_path).should include("/../acceptance_helper")
|
62
|
+
end
|
63
|
+
end
|
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: 62196353
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
|
+
- 1
|
7
8
|
- 0
|
8
|
-
- 4
|
9
9
|
- 0
|
10
10
|
- beta
|
11
11
|
- 1
|
12
|
-
version: 0.
|
12
|
+
version: 1.0.0.beta.1
|
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-
|
20
|
+
date: 2010-09-18 00:00:00 +02:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -28,17 +28,89 @@ dependencies:
|
|
28
28
|
requirements:
|
29
29
|
- - ">="
|
30
30
|
- !ruby/object:Gem::Version
|
31
|
-
hash:
|
31
|
+
hash: 3
|
32
|
+
segments:
|
33
|
+
- 0
|
34
|
+
version: "0"
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: rspec-rails
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
hash: 62196449
|
32
46
|
segments:
|
33
47
|
- 2
|
34
48
|
- 0
|
35
49
|
- 0
|
36
50
|
- beta
|
37
|
-
-
|
38
|
-
version: 2.0.0.beta.
|
39
|
-
type: :
|
40
|
-
version_requirements: *
|
41
|
-
|
51
|
+
- 1
|
52
|
+
version: 2.0.0.beta.1
|
53
|
+
type: :development
|
54
|
+
version_requirements: *id002
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rails
|
57
|
+
prerelease: false
|
58
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
59
|
+
none: false
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
hash: 7
|
64
|
+
segments:
|
65
|
+
- 3
|
66
|
+
- 0
|
67
|
+
- 0
|
68
|
+
version: 3.0.0
|
69
|
+
type: :development
|
70
|
+
version_requirements: *id003
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: capybara
|
73
|
+
prerelease: false
|
74
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
75
|
+
none: false
|
76
|
+
requirements:
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
hash: 3
|
80
|
+
segments:
|
81
|
+
- 0
|
82
|
+
version: "0"
|
83
|
+
type: :development
|
84
|
+
version_requirements: *id004
|
85
|
+
- !ruby/object:Gem::Dependency
|
86
|
+
name: webrat
|
87
|
+
prerelease: false
|
88
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ">="
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
hash: 3
|
94
|
+
segments:
|
95
|
+
- 0
|
96
|
+
version: "0"
|
97
|
+
type: :development
|
98
|
+
version_requirements: *id005
|
99
|
+
- !ruby/object:Gem::Dependency
|
100
|
+
name: sqlite3-ruby
|
101
|
+
prerelease: false
|
102
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
103
|
+
none: false
|
104
|
+
requirements:
|
105
|
+
- - ">="
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
hash: 3
|
108
|
+
segments:
|
109
|
+
- 0
|
110
|
+
version: "0"
|
111
|
+
type: :development
|
112
|
+
version_requirements: *id006
|
113
|
+
description: If you are not in Rails but use RSpec, then Steak is just some aliases providing you with the language of acceptance testing (feature, scenario, background). If you are in Rails, you also have a couple of generators, a rake task and full Rails integration testing (meaning Webrat support, for instance)
|
42
114
|
email: luismi@lmcavalle.com
|
43
115
|
executables: []
|
44
116
|
|
@@ -47,25 +119,39 @@ extensions: []
|
|
47
119
|
extra_rdoc_files: []
|
48
120
|
|
49
121
|
files:
|
50
|
-
- init.rb
|
51
122
|
- MIT-LICENSE
|
52
123
|
- Rakefile
|
53
124
|
- README.rdoc
|
54
|
-
- lib/generators/acceptance_spec/acceptance_spec_generator.rb
|
55
|
-
- lib/generators/acceptance_spec/templates/acceptance_spec.rb
|
56
|
-
- lib/generators/acceptance_spec/USAGE
|
57
|
-
- lib/generators/steak/steak_generator.rb
|
58
|
-
- lib/generators/steak/templates/acceptance_helper.rb
|
59
|
-
- lib/generators/steak/templates/helpers.rb
|
60
|
-
- lib/generators/steak/templates/paths.rb
|
61
|
-
- lib/generators/steak/templates/steak.rake
|
62
|
-
- lib/generators/steak/USAGE
|
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
|
+
- lib/rspec-1/steak.rb
|
135
|
+
- lib/rspec-2/rails/generators/install_generator.rb
|
136
|
+
- lib/rspec-2/rails/generators/spec_generator.rb
|
137
|
+
- lib/rspec-2/rails/generators/templates/acceptance_helper.rb
|
138
|
+
- lib/rspec-2/rails/generators/templates/acceptance_spec.rb
|
139
|
+
- lib/rspec-2/rails/generators/templates/helpers.rb
|
140
|
+
- lib/rspec-2/rails/generators/templates/paths.rb
|
141
|
+
- lib/rspec-2/rails/railtie.rb
|
142
|
+
- lib/rspec-2/rails/tasks/steak.rake
|
143
|
+
- lib/rspec-2/steak.rb
|
63
144
|
- lib/steak.rb
|
64
|
-
- spec/acceptance/acceptance_helper.rb
|
65
|
-
- spec/acceptance/acceptance_spec_generator_spec.rb
|
66
|
-
- spec/acceptance/basic_spec.rb
|
67
|
-
- spec/acceptance/rails_spec.rb
|
68
|
-
- spec/acceptance/steak_generator_spec.rb
|
145
|
+
- spec/acceptance/rspec-1/acceptance_helper.rb
|
146
|
+
- spec/acceptance/rspec-1/acceptance_spec_generator_spec.rb
|
147
|
+
- spec/acceptance/rspec-1/basic_spec.rb
|
148
|
+
- spec/acceptance/rspec-1/rails_spec.rb
|
149
|
+
- spec/acceptance/rspec-1/steak_generator_spec.rb
|
150
|
+
- spec/acceptance/rspec-2/acceptance_helper.rb
|
151
|
+
- spec/acceptance/rspec-2/basic_spec.rb
|
152
|
+
- spec/acceptance/rspec-2/rails_spec.rb
|
153
|
+
- spec/acceptance/rspec-2/steak_install_generator_spec.rb
|
154
|
+
- spec/acceptance/rspec-2/steak_spec_generator_spec.rb
|
69
155
|
has_rdoc: true
|
70
156
|
homepage: http://github.com/cavalle/steak
|
71
157
|
licenses: []
|
@@ -101,6 +187,6 @@ rubyforge_project:
|
|
101
187
|
rubygems_version: 1.3.7
|
102
188
|
signing_key:
|
103
189
|
specification_version: 3
|
104
|
-
summary: Minimalist acceptance testing on top of
|
190
|
+
summary: Minimalist acceptance testing on top of RSpec
|
105
191
|
test_files: []
|
106
192
|
|