Comments (10)
I have run into the same issue. Email_spec 1.0.0 fails with missing require:
--profile default Using the default profile... no such file to load -- rspec /home/byrnejb/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /home/byrnejb/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' /home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:158:in `require' /home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/email_spec-1.0.0/lib/email_spec.rb:8 /home/byrnejb/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /home/byrnejb/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' /home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:158:in `require' /home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/rails-2.3.8/lib/rails/gem_dependency.rb:215:in `load' /home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/rails-2.3.8/lib/initializer.rb:307:in `load_gems' /home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/rails-2.3.8/lib/initializer.rb:307:in `each' /home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/rails-2.3.8/lib/initializer.rb:307:in `load_gems' /home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/rails-2.3.8/lib/initializer.rb:169:in `process' /home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/rails-2.3.8/lib/initializer.rb:113:in `send' /home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/rails-2.3.8/lib/initializer.rb:113:in `run' /home/byrnejb/Software/Development/Projects/proforma.git/config/environment.rb:17 /home/byrnejb/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /home/byrnejb/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' /home/byrnejb/Software/Development/Projects/proforma.git/features/support/env.rb:8 /home/byrnejb/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /home/byrnejb/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' /home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/cucumber-0.8.5/bin/../lib/cucumber/rb_support/rb_language.rb:141:in `load_code_file' /home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/cucumber-0.8.5/bin/../lib/cucumber/step_mother.rb:108:in `load_code_file' /home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/cucumber-0.8.5/bin/../lib/cucumber/step_mother.rb:100:in `load_code_files' /home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/cucumber-0.8.5/bin/../lib/cucumber/step_mother.rb:99:in `each' /home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/cucumber-0.8.5/bin/../lib/cucumber/step_mother.rb:99:in `load_code_files' /home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/cucumber-0.8.5/bin/../lib/cucumber/cli/main.rb:53:in `execute!' /home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/cucumber-0.8.5/bin/../lib/cucumber/cli/main.rb:25:in `execute' /home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/cucumber-0.8.5/bin/cucumber:8 Missing these required gems: email_spec >= 0.6.0 You're running: ruby 1.8.7.249 at /home/byrnejb/.rvm/rubies/ruby-1.8.7-p249/bin/ruby rubygems 1.3.7 at /home/byrnejb/.rvm/gems/ruby-1.8.7-p249, /home/byrnejb/.rvm/gems/ruby-1.8.7-p249@global Run `rake gems:install` to install the missing gems. rake aborted! Command failed with status (1): [/home/byrnejb/.rvm/rubies/ruby-1.8.7-p249/...] $ gem list *** LOCAL GEMS *** actionmailer (2.3.8, 2.3.5) . . . cucumber (0.8.5) cucumber-rails (0.3.2) culerity (0.2.10) database_cleaner (0.5.2) . . . email_spec (1.0.0, 0.6.2, 0.3.0) . . . rspec (1.3.0) rspec-rails (1.3.2) . . . webrat (0.7.1) $ $ spec Usage: spec (FILE(:LINE)?|DIRECTORY|GLOB)+ [options]
from email-spec.
Email_spec 1.0 is for rails3/rspec 2. From history.txt
== 1.0 2010-07-31 Rails 3.0 Release
This release makes email-spec compatible with Rails 3 and RSpec 2.x.
IMPORTANT: As of 1.0 email-spec is no longer backwards compatible wit Rails 2.x. I will be maintaining a 0.6
branch on github/rubygems for Rails 2 compatibility if anyone wants new features backported.
So either use 0.6.x gems, or the 0.6-rails2-compat branch here...
from email-spec.
Since neither Rails 3 nor RSpec 2 are as yet in general release, putting this gem out as an update is a bit premature, don't you think? It seems so to me. Why not send it to RubyGems as a pre-release instead? Then those that are working with RoR3 and RSpec2 both can get it and those that are not do not have to accommodate yet another exception
from email-spec.
I completely agree with byrnejb. I just lost an hour trying to find out why my test suite suddenly started breaking, and ended up it was email_spec. Don't get me wrong, it's a great lib, but I don't think you should have been updated it on the general release branch for Rails 3 just now.
from email-spec.
And what's even worse the gem does not declare its dependencies. If it declared them then bundler would be able to detect that a newer rspec version is required.
from email-spec.
+1 here. Fortunately this thread showed up in google before too much time was wasted. Even a warning in the README would help.
from email-spec.
Now this same problem has been back-ported to the 0.6.x branch with the latest 0.6.4 release running under Ruby-1.9.2 (which must use RSpec-1.3.0). Although Rails-3.0.0 is in general release RSpec-2.0.0 is still in beta.
from email-spec.
@bmabey you should yank the 1.0.0 version and issue a 1.0.1 with the added deps, otherwise bundler can't figure out the right gem to install for rails2/rspec1
from email-spec.
Done that in #88
from email-spec.
This was already addressed in new versions of email-spec IIRC. None the less, I've done as @elia reccomended and yanked the 1.0.0 release and published a 1.0.1 version. Hopefully people haven't locked the the exact 1.0.0 version...
from email-spec.
Related Issues (20)
- mail.html method useful? HOT 2
- Testing in isolation seems to fail HOT 1
- visit_in_email opens the wrong link
- Match have body text with special characters HOT 1
- Doesn't work anymore after upgrading Rails (ActionMailer::Base.deliveries is empty) HOT 3
- Email_spec causes rspec to fail (though not under Spring) HOT 5
- NameError: uninitialized constant RSpec::Expectations on current_email method
- NameError: uninitialized constant Delayed::DelayMail HOT 4
- Update to support mail gem 2.7 HOT 2
- `have_body_text` with URL now failing after upgrading `mail` gem from 2.6.6 to 2.7.0 HOT 3
- Incorrect parse of confirmation url generated by ahoy_email HOT 1
- Non compatible HTML entities encoding/decoding HOT 1
- New gem version HOT 2
- EmailSpec::CouldNotFindEmailError HOT 2
- checking for a mail in the queue with multiple properties HOT 1
- Add include_link matcher HOT 2
- I send my mail both via Pony and ActionMailer
- Getting uninitialized constant EmailSpec::Helpers HOT 5
- undefined local variable or method `reset_mailer' HOT 21
- 2.2.1 gem released but master is 2.2.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from email-spec.