Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Version 1.0.0.rc.1 (working on top of Rspec 2.0 stable)

  • Loading branch information...
commit 6a4dff4e21b96caa082bd65648e65d0cccc47659 1 parent 8633178
@cavalle authored
Showing with 40 additions and 42 deletions.
  1. +38 −40 README.rdoc
  2. +2 −2 steak.gemspec
View
78 README.rdoc
@@ -6,8 +6,8 @@ http://dl.dropbox.com/u/645329/steak_small.jpg
== What is Steak?
-Steak is like Cucumber but in plain Ruby. This is how an acceptance spec looks
-like in Steak:
+Steak is an Acceptance BDD solution (like Cucumber) but in plain Ruby. This
+is how an acceptance spec looks like in Steak:
feature "Main page" do
@@ -46,9 +46,7 @@ instance)
Just install and require the damned gem!
- $ gem install steak
-
-(Add the <tt>--pre</tt> modifier to be on top of RSpec 2 instead of RSpec 1.x)
+ $ gem install steak --pre
Then in your spec or spec helper:
@@ -56,32 +54,38 @@ Then in your spec or spec helper:
That's all. You don't really need to require RSpec.
-=== In Rails 2.x (stable branch)
+=== In Rails 3
-Assuming you have already setup rspec-rails, add this to your project's
-<tt>config/environments/test.rb</tt>:
+Add this to your project's <tt>Gemfile</tt>:
- config.gem "steak", :lib => false
+ group :development, :test do
+ gem 'rspec-rails'
+ gem 'steak', '>= 1.0.0.rc.1'
+ gem 'capybara'
+
+ # Other usual suspects:
+ # gem 'delorean'
+ # gem 'database_cleaner'
+ # gem 'spork'
+ end
-Install the gem from the command line:
+And install:
- $ RAILS_ENV=test rake gems:install
+ $ bundle install
-Run the generator:
+Run the generators:
- $ script/generate steak
+ $ rails g rspec:install
+ $ rails g steak:install
That will create some basic helper files and directory structure under the
-<tt>spec/acceptance</tt> directory, already configured for +Capybara+. If you want to
-use +Webrat+, just pass it to the generator:
-
- $ script/generate steak --webrat
+<tt>spec/acceptance</tt> directory, already configured for +Capybara+.
Spend one minute on getting familiar with the structure and files you've got.
Now you may want to create your first acceptance spec:
- $ script/generate acceptance_spec this_is_my_first_feature
+ $ rails generate steak:spec this_is_my_first_feature
You run your acceptance specs just like your regular specs. Individually...
@@ -95,51 +99,45 @@ You run your acceptance specs just like your regular specs. Individually...
$ rake spec:acceptance
-=== In Rails 3 (master branch)
+=== In Rails 2.x
-Add this to your project's <tt>Gemfile</tt>:
+Assuming you have already setup rspec-rails, add this to your project's
+<tt>config/environments/test.rb</tt>:
- group :development, :test do
- gem 'rspec-rails', '>= 2.0.0.beta.19'
- gem 'steak', '>= 1.0.0.beta.1'
- gem 'capybara'
-
- # Other usual suspects:
- # gem 'delorean'
- # gem 'database_cleaner'
- # gem 'spork'
- end
+ config.gem "steak", :version => ">= 1.0.0.rc.1", :lib => false
-And install:
+Install the gem from the command line:
- $ bundle install
+ $ RAILS_ENV=test rake gems:install
-Run the generators:
+Run the generator:
- $ rails g rspec:install
- $ rails g steak:install
+ $ script/generate steak
That will create some basic helper files and directory structure under the
-<tt>spec/acceptance</tt> directory, already configured for +Capybara+.
+<tt>spec/acceptance</tt> directory, already configured for +Capybara+. If you want to
+use +Webrat+, just pass it to the generator:
+
+ $ script/generate steak --webrat
Spend one minute on getting familiar with the structure and files you've got.
Now you may want to create your first acceptance spec:
- $ rails generate steak:spec this_is_my_first_feature
+ $ script/generate acceptance_spec this_is_my_first_feature
You run your acceptance specs just like your regular specs. Individually...
- $ rspec spec/acceptance/this_is_my_first_feature_spec.rb
+ $ spec spec/acceptance/this_is_my_first_feature_spec.rb
...or all together:
- $ rspec spec/acceptance
+ $ spec spec/acceptance
...you can also do:
$ rake spec:acceptance
-
+
== RSpec & Metadata
Steak scenarios are just regular RSpec examples with their metadata attribute
View
4 steak.gemspec
@@ -3,7 +3,7 @@ require "date"
Gem::Specification.new do |gem|
gem.name = 'steak'
- gem.version = '1.0.0.beta.2'
+ gem.version = '1.0.0.rc.1'
gem.date = Date.today.to_s
gem.summary = "Minimalist acceptance testing on top of RSpec"
@@ -18,7 +18,7 @@ Gem::Specification.new do |gem|
gem.add_dependency 'rspec'
- gem.add_development_dependency 'rspec-rails', '>= 2.0.0.beta.1'
+ gem.add_development_dependency 'rspec-rails', '>= 2.0.0'
gem.add_development_dependency 'rails', '>= 3.0.0'
gem.add_development_dependency 'capybara'
gem.add_development_dependency 'webrat'
Please sign in to comment.
Something went wrong with that request. Please try again.