Add basic integration test using Cucumber
This test will generate a basic Rails application, include Paperclip into Gemfile, and call basic `has_attached_file` in the model. This will make sure that we're not messing up any of the configuration and integration for our gem and the Rails framework.
Showing
... | @@ -2,6 +2,7 @@ source "http://rubygems.org" | ... | @@ -2,6 +2,7 @@ source "http://rubygems.org" |
gem "activerecord", :require => "active_record" | gem "activerecord", :require => "active_record" | ||
gem "appraisal" | gem "appraisal" | ||
gem "aruba" | |||
gem "aws-s3", :require => "aws/s3" | gem "aws-s3", :require => "aws/s3" | ||
gem "bundler" | gem "bundler" | ||
gem "cocaine", "~>0.2" | gem "cocaine", "~>0.2" | ||
... | @@ -11,11 +12,11 @@ gem "mime-types" | ... | @@ -11,11 +12,11 @@ gem "mime-types" |
gem "mocha" | gem "mocha" | ||
gem "rake" | gem "rake" | ||
gem "rdoc", :require => false | gem "rdoc", :require => false | ||
gem "capybara" | |||
gem "cucumber", "~> 1.0.0" | |||
gem "shoulda" | gem "shoulda" | ||
gem "sqlite3", "~>1.3.4" | gem "sqlite3", "~>1.3.4" | ||
gem "fakeweb", :require => false | |||
# This is for Rails 3.1 | |||
gem "sprockets", "~> 2.0.0.beta.13", :require => false | |||
# gem "ruby-debug", :platform => :ruby_18 | # gem "ruby-debug", :platform => :ruby_18 | ||
# gem "ruby-debug19", :platform => :ruby_19 | # gem "ruby-debug19", :platform => :ruby_19 |
Gemfile.lock
deleted
100644 → 0
features/basic.feature
deleted
100644 → 0
features/basic_integration.feature
0 → 100644
features/s3.feature
deleted
100644 → 0
features/support/fakeweb.rb
0 → 100644
File added
features/support/fixtures/boot_config.txt
0 → 100644
features/support/fixtures/gemfile.txt
0 → 100644
features/support/fixtures/preinitializer.txt
0 → 100644
features/support/s3.rb
deleted
100644 → 0
features/support/selectors.rb
0 → 100644
... | @@ -33,4 +33,6 @@ spec = Gem::Specification.new do |s| | ... | @@ -33,4 +33,6 @@ spec = Gem::Specification.new do |s| |
s.add_development_dependency 'mocha' | s.add_development_dependency 'mocha' | ||
s.add_development_dependency 'aws-s3' | s.add_development_dependency 'aws-s3' | ||
s.add_development_dependency 'sqlite3' | s.add_development_dependency 'sqlite3' | ||
s.add_development_dependency 'cucumber' | |||
s.add_development_dependency 'capybara' | |||
end | end |
Please
register
or
sign in
to comment