steak 1.0.0.beta.2 → 1.0.0.rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/README.rdoc +38 -40
  2. metadata +7 -9
@@ -6,8 +6,8 @@ http://dl.dropbox.com/u/645329/steak_small.jpg
6
6
 
7
7
  == What is Steak?
8
8
 
9
- Steak is like Cucumber but in plain Ruby. This is how an acceptance spec looks
10
- like in Steak:
9
+ Steak is an Acceptance BDD solution (like Cucumber) but in plain Ruby. This
10
+ is how an acceptance spec looks like in Steak:
11
11
 
12
12
  feature "Main page" do
13
13
 
@@ -46,9 +46,7 @@ instance)
46
46
 
47
47
  Just install and require the damned gem!
48
48
 
49
- $ gem install steak
50
-
51
- (Add the <tt>--pre</tt> modifier to be on top of RSpec 2 instead of RSpec 1.x)
49
+ $ gem install steak --pre
52
50
 
53
51
  Then in your spec or spec helper:
54
52
 
@@ -56,32 +54,38 @@ Then in your spec or spec helper:
56
54
 
57
55
  That's all. You don't really need to require RSpec.
58
56
 
59
- === In Rails 2.x (stable branch)
57
+ === In Rails 3
60
58
 
61
- Assuming you have already setup rspec-rails, add this to your project's
62
- <tt>config/environments/test.rb</tt>:
59
+ Add this to your project's <tt>Gemfile</tt>:
63
60
 
64
- config.gem "steak", :lib => false
61
+ group :development, :test do
62
+ gem 'rspec-rails'
63
+ gem 'steak', '>= 1.0.0.rc.1'
64
+ gem 'capybara'
65
+
66
+ # Other usual suspects:
67
+ # gem 'delorean'
68
+ # gem 'database_cleaner'
69
+ # gem 'spork'
70
+ end
65
71
 
66
- Install the gem from the command line:
72
+ And install:
67
73
 
68
- $ RAILS_ENV=test rake gems:install
74
+ $ bundle install
69
75
 
70
- Run the generator:
76
+ Run the generators:
71
77
 
72
- $ script/generate steak
78
+ $ rails g rspec:install
79
+ $ rails g steak:install
73
80
 
74
81
  That will create some basic helper files and directory structure under the
75
- <tt>spec/acceptance</tt> directory, already configured for +Capybara+. If you want to
76
- use +Webrat+, just pass it to the generator:
77
-
78
- $ script/generate steak --webrat
82
+ <tt>spec/acceptance</tt> directory, already configured for +Capybara+.
79
83
 
80
84
  Spend one minute on getting familiar with the structure and files you've got.
81
85
 
82
86
  Now you may want to create your first acceptance spec:
83
87
 
84
- $ script/generate acceptance_spec this_is_my_first_feature
88
+ $ rails generate steak:spec this_is_my_first_feature
85
89
 
86
90
  You run your acceptance specs just like your regular specs. Individually...
87
91
 
@@ -95,51 +99,45 @@ You run your acceptance specs just like your regular specs. Individually...
95
99
 
96
100
  $ rake spec:acceptance
97
101
 
98
- === In Rails 3 (master branch)
102
+ === In Rails 2.x
99
103
 
100
- Add this to your project's <tt>Gemfile</tt>:
104
+ Assuming you have already setup rspec-rails, add this to your project's
105
+ <tt>config/environments/test.rb</tt>:
101
106
 
102
- group :development, :test do
103
- gem 'rspec-rails', '>= 2.0.0.beta.19'
104
- gem 'steak', '>= 1.0.0.beta.1'
105
- gem 'capybara'
106
-
107
- # Other usual suspects:
108
- # gem 'delorean'
109
- # gem 'database_cleaner'
110
- # gem 'spork'
111
- end
107
+ config.gem "steak", :version => ">= 1.0.0.rc.1", :lib => false
112
108
 
113
- And install:
109
+ Install the gem from the command line:
114
110
 
115
- $ bundle install
111
+ $ RAILS_ENV=test rake gems:install
116
112
 
117
- Run the generators:
113
+ Run the generator:
118
114
 
119
- $ rails g rspec:install
120
- $ rails g steak:install
115
+ $ script/generate steak
121
116
 
122
117
  That will create some basic helper files and directory structure under the
123
- <tt>spec/acceptance</tt> directory, already configured for +Capybara+.
118
+ <tt>spec/acceptance</tt> directory, already configured for +Capybara+. If you want to
119
+ use +Webrat+, just pass it to the generator:
120
+
121
+ $ script/generate steak --webrat
124
122
 
125
123
  Spend one minute on getting familiar with the structure and files you've got.
126
124
 
127
125
  Now you may want to create your first acceptance spec:
128
126
 
129
- $ rails generate steak:spec this_is_my_first_feature
127
+ $ script/generate acceptance_spec this_is_my_first_feature
130
128
 
131
129
  You run your acceptance specs just like your regular specs. Individually...
132
130
 
133
- $ rspec spec/acceptance/this_is_my_first_feature_spec.rb
131
+ $ spec spec/acceptance/this_is_my_first_feature_spec.rb
134
132
 
135
133
  ...or all together:
136
134
 
137
- $ rspec spec/acceptance
135
+ $ spec spec/acceptance
138
136
 
139
137
  ...you can also do:
140
138
 
141
139
  $ rake spec:acceptance
142
-
140
+
143
141
  == RSpec & Metadata
144
142
 
145
143
  Steak scenarios are just regular RSpec examples with their metadata attribute
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: 62196359
4
+ hash: 15424055
5
5
  prerelease: true
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
9
  - 0
10
- - beta
11
- - 2
12
- version: 1.0.0.beta.2
10
+ - rc
11
+ - 1
12
+ version: 1.0.0.rc.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-09-21 00:00:00 +02:00
20
+ date: 2010-10-12 00:00:00 +02:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
@@ -42,14 +42,12 @@ dependencies:
42
42
  requirements:
43
43
  - - ">="
44
44
  - !ruby/object:Gem::Version
45
- hash: 62196449
45
+ hash: 15
46
46
  segments:
47
47
  - 2
48
48
  - 0
49
49
  - 0
50
- - beta
51
- - 1
52
- version: 2.0.0.beta.1
50
+ version: 2.0.0
53
51
  type: :development
54
52
  version_requirements: *id002
55
53
  - !ruby/object:Gem::Dependency