removed rails features

This commit is contained in:
Scott Davis 2011-12-22 13:23:45 -05:00
parent 16fff73ed7
commit c669be8888
4 changed files with 0 additions and 64 deletions

View File

@ -77,16 +77,6 @@ Feature: Command Line
Then an error message is printed out: A bare project cannot be created when a framework is specified.
And the command exits with a non-zero error code
Scenario: Initializing a rails project
Given ruby supports fork
Given I'm in a newly created rails project: my_rails_project
When I initialize a project using: compass init rails --sass-dir app/stylesheets --css-dir public/stylesheets/compiled
Then a config file config/compass.rb is reported created
Then a config file config/compass.rb is created
And a sass file app/stylesheets/screen.scss is created
And a sass file app/stylesheets/print.scss is created
And a sass file app/stylesheets/ie.scss is created
Scenario: Compiling an existing project.
Given I am using the existing project in test/fixtures/stylesheets/compass
When I run: compass compile

View File

@ -12,16 +12,6 @@ Feature: Extensions
When I run: compass frameworks
Then the list of frameworks includes "testing"
@listframeworks
Scenario: Extensions directory for rails projects
Given ruby supports fork
And I'm in a newly created rails project: extension_test_rails_project
And I run: compass init rails
And the "vendor/plugins/compass_extensions" directory exists
And and I have a fake extension at vendor/plugins/compass_extensions/testing
When I run: compass frameworks
Then the list of frameworks includes "testing"
@listframeworks
Scenario: Shared extensions directory
Given the "~/.compass/extensions" directory exists

View File

@ -1,32 +0,0 @@
Feature: Rails Integration
In order to provide an integrated experience
As a Ruby on Rails user
I want to easily access the Compass functionality
Scenario: Configure Compass from my Application
Given I'm in a rails3.1 application named 'exemplar'
When I edit 'config/application.rb' and save it with the following value:
"""
require File.expand_path('../boot', __FILE__)
require 'rails/all'
Bundler.require(:default, Rails.env) if defined?(Bundler)
module Exemplar
class Application < Rails::Application
config.encoding = "utf-8"
config.filter_parameters += [:password]
config.compass.fonts_dir = "app/assets/fonts"
end
end
"""
And I run: compass config -p fonts_dir
Then the command should print out "app/assets/fonts"
Scenario: Rails gets access to the compass config file
Given I'm in a rails3.1 application named 'exemplar'
When I edit 'config/compass.rb' and save it with the following value:
"""
fonts_dir = "app/assets/fonts"
"""
And I run: ruby -I. -rconfig/environment -e 'puts Compass.configuration.fonts_dir'
Then the command should print out "app/assets/fonts"

View File

@ -6,7 +6,6 @@ require 'compass/exec'
include Compass::TestCaseHelper
include Compass::CommandLineHelper
include Compass::IoHelper
include Compass::RailsHelper
Before do
Compass.reset_configuration!
@ -41,17 +40,6 @@ Given %r{^I am in the parent directory$} do
Dir.chdir ".."
end
Given %r{^I'm in a newly created rails project: (.+)$} do |project_name|
dir = File.join(Dir.pwd, project_name)
@cleanup_directories << dir
begin
generate_rails_app project_name, Dir.pwd
Dir.chdir dir
rescue LoadError
pending "Missing Ruby-on-rails gems: sudo gem install rails"
end
end
Given /^I should clean up the directory: (\w+)$/ do |directory|
@cleanup_directories << directory
end