Permalink
Browse files

clean up

  • Loading branch information...
1 parent 1385d3f commit b4ce3fe152cbe99387dc87f36061ab6f6fdf3948 @mkristian committed Mar 22, 2011
Showing with 0 additions and 27 deletions.
  1. +0 −5 features/generators.feature
  2. +0 −22 features/step_definitions/simple_steps.rb
@@ -1,5 +0,0 @@
-Feature: Generators for Ixtlan Audit
-
- Scenario: The slf4r rails template creates a rails application which uses slf4r-wrapper
- Given I create new rails application with template "simple.template"
- Then the output should contain "setup slf4r logger wrapper with ActiveSupport::BufferedLogger"
@@ -1,22 +0,0 @@
-require 'fileutils'
-Given /^I create new rails application with template "(.*)"$/ do |template|
- name = template.sub(/.template$/, '')
- directory = File.join('target', name)
- rails_version = ENV['RAILS_VERSION'] || '3.0.1'
-
- ruby = defined?(JRUBY_VERSION) ? "jruby" : "ruby"
- rails_command = "#{ENV['GEM_HOME']}/bin/rails"
- rails_command = "-S rails" unless File.exists?(rails_command)
- command = "#{rails_command} _#{rails_version}_ new #{directory} -f -m templates/#{template}"
- FileUtils.rm_rf(directory)
-
- system "#{ruby} #{command}"
-
- @result = File.read("target/#{name}/log/development.log")
- puts @result
-end
-
-Then /^the output should contain \"(.*)\"$/ do |expected|
- (@result =~ /.*#{expected}.*/).should_not be_nil
-end
-

0 comments on commit b4ce3fe

Please sign in to comment.