Skip to content

Commit

Permalink
Much improved cucumber suite - work in progress.
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakhellesoy committed Sep 16, 2010
1 parent 4665b8e commit 845b5c9
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 68 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ pkg
doc
tmp
coverage
.bundle
.bundle
Gemfile.lock
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ source "http://rubygems.org"
gemspec

gem 'cucumber', :path => '../cucumber' if File.directory?(File.dirname(__FILE__) + '/../cucumber')
gem 'aruba', :path => '../aruba' if File.directory?(File.dirname(__FILE__) + '/../aruba')
gem 'gherkin', :path => '../gherkin' if File.directory?(File.dirname(__FILE__) + '/../gherkin')
gem 'aruba', :path => '../aruba' if File.directory?(File.dirname(__FILE__) + '/../aruba')
48 changes: 0 additions & 48 deletions Gemfile.lock

This file was deleted.

4 changes: 2 additions & 2 deletions cucumber-rails.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# -*- encoding: utf-8 -*-
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
require "cucumber/platform"

Gem::Specification.new do |s|
s.name = 'cucumber-rails'
Expand All @@ -13,8 +12,9 @@ Gem::Specification.new do |s|

s.platform = Gem::Platform::RUBY

s.add_dependency 'cucumber', '~> 0.9.0' unless File.directory?(File.dirname(__FILE__) + '/../cucumber')
s.add_dependency('cucumber', '~> 0.9.0') unless File.directory?(File.expand_path(File.dirname(__FILE__) + '/../cucumber'))
s.add_dependency 'aruba', '~> 0.2.2' unless File.directory?(File.dirname(__FILE__) + '/../aruba')
s.add_development_dependency('rspec', "~> 2.0.0.beta.22")

s.rubygems_version = "1.3.7"
s.files = `git ls-files`.split("\n")
Expand Down
23 changes: 7 additions & 16 deletions features/rails3.feature
Original file line number Diff line number Diff line change
@@ -1,27 +1,18 @@
@announce-cmd
@announce @puts
@announce
Feature: Rails 3
In order to take over the world
Cucumber-Rails should work on major versions
of Rails2 and Ruby, with Capybara, Spork and DatabaseCleaner
of Rails 3 and Ruby, with Capybara, Spork and DatabaseCleaner

Scenario: Install Cucumber-Rails
Given I am using rvm "ruby-1.8.7-p249"
And I am using rvm gemset "cucumber-rails-3.0.0.beta" with Gemfile:
Given I have a Rails "3.0.0" project named "rails-3-app" with the following appended to Gemfile:
"""
source :gemcutter
gem 'rails', '3.0.0.rc'
gem 'sqlite3-ruby', '1.2.5'
gem 'capybara', '0.3.9'
gem 'rspec', '2.0.0.beta.22'
gem 'cucumber-rails', :path => '../../..'
"""
When I successfully run "rails new rails-3-app"
Then it should pass with:
"""
README
"""
And I cd to "rails-3-app"
And I symlink "../../.." to "vendor/plugins/cucumber-rails"
When I successfully run "rails generate cucumber:install --capybara"


Then the following files should exist:
| config/cucumber.yml |
| script/cucumber |
Expand Down
1 change: 1 addition & 0 deletions features/support/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
require 'rubygems'
require 'rspec/expectations'
require 'aruba'
require 'aruba/rails3'

0 comments on commit 845b5c9

Please sign in to comment.