Skip to content

Commit

Permalink
Fixes rails version dependence and removes fuubar rspec format
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas von Deyen committed Apr 24, 2012
1 parent f2a23aa commit b7e732b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .rspec
Original file line number Original file line Diff line number Diff line change
@@ -1,2 +1 @@
--format Fuubar
--color --color
4 changes: 2 additions & 2 deletions lib/alchemy_cms.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
if defined?(Rails) && Rails::VERSION::MAJOR == 3 if defined?(Rails) && Rails::VERSION::MAJOR == 3 && Rails::VERSION::MINOR == 2
require 'acts_as_list' require 'acts_as_list'
require 'attachment_magic' require 'attachment_magic'
require 'authlogic' require 'authlogic'
Expand All @@ -23,7 +23,7 @@
end end
require File.join(File.dirname(__FILE__), "alchemy", "seeder") require File.join(File.dirname(__FILE__), "alchemy", "seeder")
else else
raise "Alchemy 2.1 needs Rails 3.1 or higher. You are currently using Rails #{Rails::VERSION::STRING}" raise "Alchemy 2.2 needs Rails 3.2 or higher. You are currently using Rails #{Rails::VERSION::STRING}"
end end


module Alchemy module Alchemy
Expand Down
4 changes: 2 additions & 2 deletions spec/spec_helper.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ def configure


# Configure capybara for integration testing # Configure capybara for integration testing
require "capybara/rails" require "capybara/rails"
require 'capybara-webkit' require 'capybara-webkit' unless ENV['CI']
Capybara.default_driver = :rack_test Capybara.default_driver = :rack_test
Capybara.default_selector = :css Capybara.default_selector = :css
Capybara.javascript_driver = :webkit Capybara.javascript_driver = :webkit unless ENV['CI']


# Load support files # Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
Expand Down

0 comments on commit b7e732b

Please sign in to comment.