Skip to content

fixtures.rb didn't make it to rubygems #31

Closed
pferdefleisch opened this Issue Apr 2, 2012 · 15 comments

8 participants

@pferdefleisch
vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- minitest/rails/fixtures (LoadError)

from

vendor/bundle/ruby/1.9.1/gems/minitest-rails-0.0.6/lib/minitest/rails.rb:5:in `<top (required)>'

the file's on github but didn't seem t make it to the 0.6.0 rubygems package.
Or am I crazy?

 % tree minitest-rails-0.0.6                                                                                                                                                                            1.9.1/gems (dev ⚡) Aarons-MacBook-Pro
minitest-rails-0.0.6
├── CHANGELOG.rdoc
├── Manifest.txt
├── README.rdoc
├── Rakefile
├── lib
│   ├── generators
│   │   ├── mini_test
│   │   │   ├── controller
│   │   │   │   ├── controller_generator.rb
│   │   │   │   └── templates
│   │   │   │       ├── controller_spec.rb
│   │   │   │       └── controller_test.rb
│   │   │   ├── helper
│   │   │   │   ├── helper_generator.rb
│   │   │   │   └── templates
│   │   │   │       ├── helper_spec.rb
│   │   │   │       └── helper_test.rb
│   │   │   ├── install
│   │   │   │   ├── install_generator.rb
│   │   │   │   └── templates
│   │   │   │       └── test
│   │   │   │           └── minitest_helper.rb
│   │   │   ├── mailer
│   │   │   │   ├── mailer_generator.rb
│   │   │   │   └── templates
│   │   │   │       ├── mailer_spec.rb
│   │   │   │       └── mailer_test.rb
│   │   │   ├── model
│   │   │   │   ├── model_generator.rb
│   │   │   │   └── templates
│   │   │   │       ├── fixtures.yml
│   │   │   │       ├── model_spec.rb
│   │   │   │       └── model_test.rb
│   │   │   └── scaffold
│   │   │       ├── scaffold_generator.rb
│   │   │       └── templates
│   │   │           ├── controller_spec.rb
│   │   │           └── controller_test.rb
│   │   └── mini_test.rb
│   ├── minitest
│   │   ├── rails
│   │   │   ├── controller.rb
│   │   │   ├── helper.rb
│   │   │   ├── mailer.rb
│   │   │   ├── model.rb
│   │   │   ├── spec.rb
│   │   │   └── tasks
│   │   │       └── minitest.rake
│   │   └── rails.rb
│   └── minitest-rails.rb
└── test
    ├── test_controller_generator.rb
    ├── test_helper_generator.rb
    ├── test_install_generator.rb
    ├── test_mailer_generator.rb
    ├── test_minitest.rb
    ├── test_model_generator.rb
    └── test_scaffold_generator.rb
@pferdefleisch

and when I try to throw the repo url in the Gemfile I am getting this:

Using minitest-rails (0.0.6) from https://github.com/blowmage/minitest-rails.git (at master) 
minitest-rails at ..../vendor/bundle/ruby/1.9.1/bundler/gems/minitest-rails-401c75d69411 did not have a valid gemspec.
This prevents bundler from installing bins or native extensions, but that may not affect its functionality.
The validation message from Rubygems was:
  [".gemtest"] are not files
@phiggins
Collaborator
phiggins commented Apr 2, 2012

Your assumption was correct, that file did not make it into the released gem. Since it is not in the Manifest.txt, it will not be included in the gem. Thanks for reporting the issue!

As for the warning you get when using the git version, that is safe to ignore, and is something the gem authors should be concerned with, not users.

@pferdefleisch

@phiggins Cool, I will use the git attribute.
Will a new version be pushed in the near future to fix this? I'm a little confused by your response (and I don't know your relationship to the project).

@phiggins
Collaborator
phiggins commented Apr 2, 2012

Will a new version be pushed in the near future to fix this? I'm a little confused by your response (and I don't know your relationship to the project).

I'm a committer on the project, but I haven't done any releases. FWIW, I believe a release should be done to fix this as it should be a pretty simple fix and is clearly broken as you've demonstrated.

@jhblacklock

I'm using minitest-rails (0.0.6) but still getting the dependency error `require': no such file to load -- minitest/rails/fixtures (LoadError).

I see that it was merged but for some reason it didn't seem to commit to the latest version.

Is there a new version that I should reference?

Thanks!

@blindgaenger

Yep, same problem here … but the fix works when I ref the commit in my Gemfile.

So could someone please push a new release? Thanks!

@hishma
hishma commented May 9, 2012

+1

@blanchma

Please, merge +1

@jhblacklock

I stumbled upon this fork https://github.com/mschuerig/minitest-rails. Works like a charm! Thanks blowmage and mschuerig for the killer gem.

@pferdefleisch

@blowmage could you please let us know in this thread after you push it up to rubygems. Thanks!

@blowmage
Owner

This file should be in 0.0.7. Sorry about that.

@blowmage
Owner

This file is going away in 0.1.0.

@blowmage blowmage closed this May 25, 2012
@swistak
swistak commented May 27, 2012

So what's the fix exactly? I jsut updated to newest version and it's still there, and it's still broken?

@blowmage
Owner

Which version are you getting the missing fixtures.rb message? 0.0.7 or 0.1.0.alpha?

@swistak
swistak commented May 28, 2012

0.0.7
Instaling from git seemed to fix the problem, but I've ended up removing this gem. To unstable and broken for my taste.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.