Permalink
Browse files

Acceptance Example Group

  • Loading branch information...
1 parent 6f596cb commit f7df4a02c8b6dc09a5f67aa4d8100bddeb5d65a5 @cavalle committed Jun 1, 2011
View
@@ -1,14 +1,14 @@
GIT
remote: git://github.com/jnicklas/capybara.git
- revision: 0ad2f9f066dbc5628e78bef057754e13dcb32675
+ revision: 36a0aa942b27e142cc72260f9ccf051999627769
specs:
- capybara (0.4.1.1)
+ capybara (1.0.0.beta1)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
- selenium-webdriver (>= 0.0.27)
- xpath (~> 0.1.3)
+ selenium-webdriver (~> 0.2.0)
+ xpath (~> 0.1.4)
PATH
remote: .
@@ -47,22 +47,21 @@ GEM
activemodel (= 3.0.7)
activesupport (= 3.0.7)
activesupport (3.0.7)
- arel (2.0.9)
+ arel (2.0.10)
builder (2.1.2)
- childprocess (0.1.8)
+ childprocess (0.1.9)
ffi (~> 1.0.6)
columnize (0.3.2)
diff-lcs (1.1.2)
erubis (2.6.6)
abstract (>= 1.0.0)
- ffi (1.0.7)
- rake (>= 0.8.7)
- ffi (1.0.7-java)
+ ffi (1.0.9)
+ ffi (1.0.9-java)
i18n (0.5.0)
jdbc-sqlite3 (3.6.14.2.056-java)
json_pure (1.5.1)
linecache (0.43)
- mail (2.2.17)
+ mail (2.2.19)
activesupport (>= 2.3.6)
i18n (>= 0.4.0)
mime-types (~> 1.16)
@@ -72,7 +71,7 @@ GEM
nokogiri (1.4.4-java)
weakling (>= 0.0.3)
polyglot (0.3.1)
- rack (1.2.2)
+ rack (1.2.3)
rack-mount (0.6.14)
rack (>= 1.0.0)
rack-test (0.5.7)
@@ -90,20 +89,20 @@ GEM
activesupport (= 3.0.7)
rake (>= 0.8.7)
thor (~> 0.14.4)
- rake (0.8.7)
- rspec (2.5.0)
- rspec-core (~> 2.5.0)
- rspec-expectations (~> 2.5.0)
- rspec-mocks (~> 2.5.0)
- rspec-core (2.5.1)
- rspec-expectations (2.5.0)
+ rake (0.9.1)
+ rspec (2.6.0)
+ rspec-core (~> 2.6.0)
+ rspec-expectations (~> 2.6.0)
+ rspec-mocks (~> 2.6.0)
+ rspec-core (2.6.3)
+ rspec-expectations (2.6.0)
diff-lcs (~> 1.1.2)
- rspec-mocks (2.5.0)
- rspec-rails (2.5.0)
+ rspec-mocks (2.6.0)
+ rspec-rails (2.6.1)
actionpack (~> 3.0)
activesupport (~> 3.0)
railties (~> 3.0)
- rspec (~> 2.5.0)
+ rspec (~> 2.6.0)
ruby-debug (0.10.4)
columnize (>= 0.1)
ruby-debug-base (~> 0.10.4.0)
@@ -119,9 +118,9 @@ GEM
thor (0.14.6)
treetop (1.4.9)
polyglot (>= 0.3.1)
- tzinfo (0.3.26)
+ tzinfo (0.3.27)
weakling (0.0.4-java)
- xpath (0.1.3)
+ xpath (0.1.4)
nokogiri (~> 1.3)
PLATFORMS
@@ -3,4 +3,4 @@ module HelperMethods
end
-RSpec.configuration.include HelperMethods, :type => :request
+RSpec.configuration.include HelperMethods, :type => :acceptance
@@ -6,4 +6,4 @@ def homepage
end
end
-RSpec.configuration.include NavigationHelpers, :type => :request
+RSpec.configuration.include NavigationHelpers, :type => :acceptance
View
@@ -1,10 +1,7 @@
require 'capybara/rspec'
require 'rspec-rails'
-module Steak
- class Railtie < ::Rails::Railtie
- rake_tasks do
- load 'tasks/steak_tasks.rake'
- end
- end
-end
+require 'steak/railtie'
+require 'steak/acceptance_example_group'
+
+RSpec.configuration.include Steak::AcceptanceExampleGroup, :capybara_feature => true
@@ -0,0 +1,9 @@
+module Steak
+ module AcceptanceExampleGroup
+ extend ActiveSupport::Concern
+
+ included do
+ metadata[:type] = :acceptance
+ end
+ end
+end
View
@@ -0,0 +1,7 @@
+module Steak
+ class Railtie < ::Rails::Railtie
+ rake_tasks do
+ load 'tasks/steak_tasks.rake'
+ end
+ end
+end
@@ -4,4 +4,4 @@
# If you change this key, all old signed cookies will become invalid!
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
-RailsProject::Application.config.secret_token = '183fdebfc3fea27cb3331a310954aa4061e9656794d59fc48e9b2cb7ee08e361c6696151419a04cc600680de3ae3478c468fda839617a253eefa1194ee6779bb'
+RailsProject::Application.config.secret_token = '496186afacd59321a33e8d276aca3cbb57f7fb628535ed477b319ff6ea96a167773e873e98a6be771641efc872b2eaa4ebaae221c93eb5ccdcd0e511b3245d43'
@@ -60,5 +60,5 @@ end
# end
group :test, :development do
gem 'steak', :path => '/Users/luismi/p/steak'
- gem 'capybara', :path => '/Users/luismi/.rvm/gems/ree-1.8.7-2011.03/bundler/gems/capybara-0ad2f9f066db' # Totally temporal. It should be a steak dependency
+ gem 'capybara', :path => '/Users/luismi/.rvm/gems/ree-1.8.7-2011.03/bundler/gems/capybara-36a0aa942b27' # Totally temporal. It should be a steak dependency
end
@@ -1,13 +1,13 @@
PATH
- remote: /Users/luismi/.rvm/gems/ree-1.8.7-2011.03/bundler/gems/capybara-0ad2f9f066db
+ remote: /Users/luismi/.rvm/gems/ree-1.8.7-2011.03/bundler/gems/capybara-36a0aa942b27
specs:
- capybara (0.4.1.1)
+ capybara (1.0.0.beta1)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
- selenium-webdriver (>= 0.0.27)
- xpath (~> 0.1.3)
+ selenium-webdriver (~> 0.2.0)
+ xpath (~> 0.1.4)
PATH
remote: /Users/luismi/p/steak
@@ -45,26 +45,25 @@ GEM
activemodel (= 3.0.7)
activesupport (= 3.0.7)
activesupport (3.0.7)
- arel (2.0.9)
+ arel (2.0.10)
builder (2.1.2)
- childprocess (0.1.8)
+ childprocess (0.1.9)
ffi (~> 1.0.6)
diff-lcs (1.1.2)
erubis (2.6.6)
abstract (>= 1.0.0)
- ffi (1.0.7)
- rake (>= 0.8.7)
+ ffi (1.0.9)
i18n (0.5.0)
json_pure (1.5.1)
- mail (2.2.17)
+ mail (2.2.19)
activesupport (>= 2.3.6)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.16)
nokogiri (1.4.4)
polyglot (0.3.1)
- rack (1.2.2)
+ rack (1.2.3)
rack-mount (0.6.14)
rack (>= 1.0.0)
rack-test (0.5.7)
@@ -82,20 +81,20 @@ GEM
activesupport (= 3.0.7)
rake (>= 0.8.7)
thor (~> 0.14.4)
- rake (0.8.7)
- rspec (2.5.0)
- rspec-core (~> 2.5.0)
- rspec-expectations (~> 2.5.0)
- rspec-mocks (~> 2.5.0)
- rspec-core (2.5.1)
- rspec-expectations (2.5.0)
+ rake (0.9.1)
+ rspec (2.6.0)
+ rspec-core (~> 2.6.0)
+ rspec-expectations (~> 2.6.0)
+ rspec-mocks (~> 2.6.0)
+ rspec-core (2.6.3)
+ rspec-expectations (2.6.0)
diff-lcs (~> 1.1.2)
- rspec-mocks (2.5.0)
- rspec-rails (2.5.0)
+ rspec-mocks (2.6.0)
+ rspec-rails (2.6.1)
actionpack (~> 3.0)
activesupport (~> 3.0)
railties (~> 3.0)
- rspec (~> 2.5.0)
+ rspec (~> 2.6.0)
rubyzip (0.9.4)
selenium-webdriver (0.2.0)
childprocess (>= 0.1.7)
@@ -106,8 +105,8 @@ GEM
thor (0.14.6)
treetop (1.4.9)
polyglot (>= 0.3.1)
- tzinfo (0.3.26)
- xpath (0.1.3)
+ tzinfo (0.3.27)
+ xpath (0.1.4)
nokogiri (~> 1.3)
PLATFORMS
@@ -4,4 +4,4 @@
# If you change this key, all old signed cookies will become invalid!
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
-RailsProject::Application.config.secret_token = '183fdebfc3fea27cb3331a310954aa4061e9656794d59fc48e9b2cb7ee08e361c6696151419a04cc600680de3ae3478c468fda839617a253eefa1194ee6779bb'
+RailsProject::Application.config.secret_token = '496186afacd59321a33e8d276aca3cbb57f7fb628535ed477b319ff6ea96a167773e873e98a6be771641efc872b2eaa4ebaae221c93eb5ccdcd0e511b3245d43'
@@ -3,4 +3,4 @@ module HelperMethods
end
-RSpec.configuration.include HelperMethods, :type => :request
+RSpec.configuration.include HelperMethods, :type => :acceptance
@@ -6,4 +6,4 @@ def homepage
end
end
-RSpec.configuration.include NavigationHelpers, :type => :request
+RSpec.configuration.include NavigationHelpers, :type => :acceptance

0 comments on commit f7df4a0

Please sign in to comment.