Convert all of the tests from test/unit to RSpec
This is a big one. This change converts all of the existing tests from test/unit to RSpec. It's been a long time coming, and was specifically prompted by the inability of minitest to work with Appraisal across the various Rails versions. Instead of ironing out that headache, converting to RSpec was preferable (after initial probing). Many assertions are still assertions and are housed in the Assertions module, but they should be converted as they get touched. Similarly, since we're touching all the tests/specs, we convert all the hashes from 1.8 syntax to 1.9 syntax.
Showing
... | ... | @@ -2,12 +2,9 @@ source "https://rubygems.org" |
gemspec | ||
gem 'sqlite3', '~> 1.3.4', :platform => :ruby | ||
gem 'jruby-openssl', :platform => :jruby | ||
gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby | ||
gem 'pry', :platform => :ruby | ||
gem 'pry-byebug', :platform => :ruby | ||
gem 'rubysl', :platform => :rbx | ||
# Hinting at development dependencies | ||
... | ... |
... | ... | @@ -15,7 +15,7 @@ Gem::Specification.new do |s| |
s.rubyforge_project = "paperclip" | ||
s.files = `git ls-files`.split("\n") | ||
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") | ||
s.test_files = `git ls-files -- {spec,features}/*`.split("\n") | ||
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } | ||
s.require_paths = ["lib"] | ||
... | ... | @@ -29,12 +29,12 @@ Gem::Specification.new do |s| |
s.add_development_dependency('activerecord', '>= 3.0.0') | ||
s.add_development_dependency('shoulda') | ||
s.add_development_dependency('rspec') | ||
s.add_development_dependency('appraisal') | ||
s.add_development_dependency('mocha') | ||
s.add_development_dependency('aws-sdk', '>= 1.5.7') | ||
s.add_development_dependency('bourne') | ||
s.add_development_dependency('sqlite3', '~> 1.3.4') | ||
s.add_development_dependency('cucumber', '~> 1.2.1') | ||
s.add_development_dependency('cucumber', '~> 1.3.11') | ||
s.add_development_dependency('aruba') | ||
s.add_development_dependency('nokogiri') | ||
# Ruby version < 1.9.3 can't install capybara > 2.0.3. | ||
... | ... | @@ -46,4 +46,5 @@ Gem::Specification.new do |s| |
s.add_development_dependency('fakeweb') | ||
s.add_development_dependency('railties') | ||
s.add_development_dependency('actionmailer', '>= 3.0.0') | ||
s.add_development_dependency('generator_spec') | ||
end |
File moved
File moved
File moved
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
spec/support/assertions.rb
0 → 100644
spec/support/fake_rails.rb
0 → 100644
spec/support/matchers/accept.rb
0 → 100644
spec/support/matchers/exist.rb
0 → 100644
test/generator_test.rb
deleted
100644 → 0
Please
register
or
sign in
to comment