Permalink
Browse files

Fix tests

  • Loading branch information...
1 parent 7e456ae commit 8cdb1b099739ebb853cb6619c52eaa6013f8f255 @aslakhellesoy aslakhellesoy committed Feb 19, 2012
Showing with 23 additions and 23 deletions.
  1. +19 −19 cucumber-rails.gemspec
  2. +4 −4 features/no_database.feature
@@ -3,39 +3,39 @@ $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
Gem::Specification.new do |s|
s.name = 'cucumber-rails'
- s.version = '1.2.1'
+ s.version = '1.3.0'
s.authors = ["Aslak Hellesøy", "Dennis Blöte", "Rob Holland"]
s.description = "Cucumber Generator and Runtime for Rails"
s.summary = "#{s.name}-#{s.version}"
s.email = 'cukes@googlegroups.com'
s.homepage = "http://cukes.info"
- s.add_runtime_dependency('cucumber', '>= 1.1.3')
+ s.add_runtime_dependency('cucumber', '>= 1.1.8')
s.add_runtime_dependency('nokogiri', '>= 1.5.0')
s.add_runtime_dependency('capybara', '>= 1.1.2')
- s.add_development_dependency('rails', '>= 3.1.3')
+ s.add_development_dependency('rails', '>= 3.2.1')
s.add_development_dependency('rake', '>= 0.9.2.2')
- s.add_development_dependency('bundler', '>= 1.0.21')
- s.add_development_dependency('aruba', '>= 0.4.7')
+ s.add_development_dependency('bundler', '>= 1.0.22')
+ s.add_development_dependency('aruba', '>= 0.4.11')
s.add_development_dependency('sqlite3', '>= 1.3.5')
- s.add_development_dependency('rspec', '>= 2.7.0')
- s.add_development_dependency('rspec-rails', '>= 2.7.0')
- s.add_development_dependency('ammeter', '>= 0.2.1')
- s.add_development_dependency('factory_girl', '>= 2.3.2')
- s.add_development_dependency('database_cleaner', '>= 0.7.0')
- s.add_development_dependency('mongoid', '>= 2.3.4')
- s.add_development_dependency('bson_ext', '>= 1.5.1')
+ s.add_development_dependency('rspec', '~> 2.7.0') # Bump when cucumber bumps it
+ s.add_development_dependency('rspec-rails', '~> 2.7.0')
+ s.add_development_dependency('ammeter', '>= 0.2.2')
+ s.add_development_dependency('factory_girl', '>= 2.6.0')
+ s.add_development_dependency('database_cleaner', '>= 0.7.1')
+ s.add_development_dependency('mongoid', '>= 2.4.4')
+ s.add_development_dependency('bson_ext', '>= 1.5.2')
# Various Stuff that Rails 3.1 puts inside apps.
- s.add_development_dependency('turn', '>= 0.8.3')
- s.add_development_dependency('sass-rails', '>= 3.1.5')
- s.add_development_dependency('coffee-rails', '>= 3.1.1')
- s.add_development_dependency('uglifier', '>= 1.1.0')
- s.add_development_dependency('jquery-rails', '>= 1.0.19')
+ s.add_development_dependency('turn', '>= 0.9.3')
+ s.add_development_dependency('sass-rails', '>= 3.2.4')
+ s.add_development_dependency('coffee-rails', '>= 3.2.2')
+ s.add_development_dependency('uglifier', '>= 1.2.3')
+ s.add_development_dependency('jquery-rails', '>= 2.0.0')
# For Documentation:
- s.add_development_dependency('yard', '~> 0.7.4')
- s.add_development_dependency('rdoc', '~> 3.11')
+ s.add_development_dependency('yard', '~> 0.7.5')
+ s.add_development_dependency('rdoc', '~> 3.12')
s.add_development_dependency('rdiscount', '~> 1.6.8')
s.add_development_dependency('bcat', '~> 0.6.2')
@@ -1,8 +1,9 @@
+@announce
Feature: No Database
Allow Cucumber to work with a Rails app without a database
Scenario: No ActiveRecord and DatabaseCleaner
- Given I have created a new Rails 3 app "rails-3-app" and installed cucumber-rails
+ Given I have created a new Rails 3 app with no database and installed cucumber-rails
# Turn off ActiveRecord
And I write to "config/application.rb" with:
"""
@@ -15,14 +16,13 @@ Feature: No Database
Bundler.require(:default, Rails.env) if defined?(Bundler)
- module Rails3App
+ module TestApp
class Application < Rails::Application
config.encoding = "utf-8"
config.filter_parameters += [:password]
end
end
"""
- And I remove the file "config/database.yml"
And I overwrite "features/support/env.rb" with:
"""
require 'cucumber/rails'
@@ -46,7 +46,7 @@ Feature: No Database
"""
And I write to "config/routes.rb" with:
"""
- Rails3App::Application.routes.draw do
+ TestApp::Application.routes.draw do
resources :posts
end
"""

0 comments on commit 8cdb1b0

Please sign in to comment.