Giter VIP home page Giter VIP logo

fuubar's Introduction

Fuubar


fuubar is an instafailing RSpec formatter that uses a progress bar instead of a string of letters and dots as feedback.

examples

Installation

gem install fuubar

# or in your Gemfile

gem 'fuubar'

Usage

In order to use fuubar, you have three options.

Option 1: Invoke It Manually Via The Command Line

rspec --format Fuubar --color

Option 2: Add It To Your Local .rspec File

# .rspec

--format Fuubar
--color

Option 3: Add It To Your spec_helper.rb

# spec/spec_helper.rb

RSpec.configure do |config|
  config.add_formatter 'Fuubar'
end

Advanced Usage

Customizing The Bar

fuubar exposes an RSpec configuration variable called fuubar_progress_bar_options which, when set will be passed directly to ruby-progressbar which does all the heavy lifting. Take a look at the ruby-progressbar documentation for details on all of the options you can pass in.

Example

Let's say for example that you would like to change the format of the bar. You would do that like so:

# spec/spec_helper.rb

RSpec.configure do |config|
  config.fuubar_progress_bar_options = { :format => 'My Fuubar! <%B> %p%% %a' }
end

would make it so that, when fuubar is output, it would look something like:

My Fuubar! <================================                  > 53.44% 00:12:31

Hiding Pending/Skipped Spec Summary

By default fuubar follows RSpec's lead and will dump out a summary of all of the pending specs in the suite once the test run is over. This is a good idea because the additional noise is a nudge to fix those tests. We realize however that not all teams have the luxury of implementing all of the pending specs and therefore fuubar gives you the option of supressing that summary.

Example

# spec/spec_helper.rb

RSpec.configure do |config|
  config.fuubar_output_pending_results = false
end

Enabling Auto-Refresh

By default fuubar refreshes the bar only between each spec. You can enable an auto-refresh feature that will keep refreshing the bar (and therefore the ETA) every second. You can enable the feature as follows:

# spec/spec_helper.rb

RSpec.configure do |config|
  config.fuubar_auto_refresh = true
end

Undesirable Effects

Unfortunately this option doesn't play well with things like debuggers, as having a bar show up every second would be undesireable (which is why the feature is disabled by default). Depending on what you are using, you may be given ways to work around this problem.

Pry

Pry provides hooks that can be used to disable fuubar during a debugging session, you could for example add the following to your spec helper:

# spec/spec_helper.rb

Pry.config.hooks.add_hook(:before_session, :disable_fuubar_auto_refresh) do |_output, _binding, _pry|
  RSpec.configuration.fuubar_auto_refresh = false
end

Pry.config.hooks.add_hook(:after_session, :restore_fuubar_auto_refresh) do |_output, _binding, _pry|
  RSpec.configuration.fuubar_auto_refresh = true
end
Byebug

Unfortunately byebug does not provide hooks, so your best bet is to disable auto-refresh manually before calling byebug.

RSpec.configuration.fuubar_auto_refresh = false
byebug

Security

fuubar is cryptographically signed. To be sure the gem you install hasn’t been tampered with, follow these steps:

  • Add my public key (if you haven’t already) as a trusted certificate

    gem cert --add <(curl -Ls https://raw.github.com/thekompanee/fuubar/master/certs/thekompanee.pem)
  • Install fuubar telling it to use security checks when possible.

    gem install fuubar -P MediumSecurity

Note: The MediumSecurity trust profile will verify signed gems, but allow the installation of unsigned dependencies.

This is necessary because fuubar has a dependency on RSpec which isn't signed, and therefore we cannot use HighSecurity, which requires signed gems.

Credits

fuubar was written by Jeff Felchner and Jeff Kreeftmeijer

The Kompanee

fuubar is maintained and funded by The Kompanee, Ltd.

The names and logos for The Kompanee are trademarks of The Kompanee, Ltd.

License

fuubar is Copyright © 2010-2021 Jeff Kreeftmeijer and Jeff Felchner. It is free software, and may be redistributed under the terms specified in the LICENSE file.

fuubar's People

Contributors

arsduo avatar bradx3 avatar bukharih avatar danielbayerlein avatar davidstosik avatar dkniffin avatar eagletmt avatar elia avatar hron avatar iain avatar jfelchner avatar nashby avatar nicolasleger avatar ojab avatar olivierlacan avatar plukevdh avatar razum2um avatar tfe avatar thedrow avatar twalpole avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fuubar's Issues

`require': cannot load such file -- fuubar (LoadError)

I honestly hope I am not missing something incredibly obvious, but no matter how hard I try, I cannot get RSpec to load Fuubar.

I installed it with gem install fuubar and ran rspec --format Fuubar --color spec in my project as per the README. That just results in this stack trace:

/Users/JS/.rvm/gems/ruby-2.0.0-p247/gems/rspec-core-2.14.8/lib/rspec/core/configuration.rb:1108:in `require': cannot load such file -- fuubar (LoadError)
    from /Users/JS/.rvm/gems/ruby-2.0.0-p247/gems/rspec-core-2.14.8/lib/rspec/core/configuration.rb:1108:in `rescue in custom_formatter'
    from /Users/JS/.rvm/gems/ruby-2.0.0-p247/gems/rspec-core-2.14.8/lib/rspec/core/configuration.rb:1105:in `custom_formatter'
    from /Users/JS/.rvm/gems/ruby-2.0.0-p247/gems/rspec-core-2.14.8/lib/rspec/core/configuration.rb:574:in `add_formatter'
    from /Users/JS/.rvm/gems/ruby-2.0.0-p247/gems/rspec-core-2.14.8/lib/rspec/core/configuration_options.rb:78:in `block in load_formatters_into'
    from /Users/JS/.rvm/gems/ruby-2.0.0-p247/gems/rspec-core-2.14.8/lib/rspec/core/configuration_options.rb:78:in `each'
    from /Users/JS/.rvm/gems/ruby-2.0.0-p247/gems/rspec-core-2.14.8/lib/rspec/core/configuration_options.rb:78:in `load_formatters_into'
    from /Users/JS/.rvm/gems/ruby-2.0.0-p247/gems/rspec-core-2.14.8/lib/rspec/core/configuration_options.rb:28:in `configure'
    from /Users/JS/.rvm/gems/ruby-2.0.0-p247/gems/rspec-core-2.14.8/lib/rspec/core/command_line.rb:21:in `run'
    from /Users/JS/.rvm/gems/ruby-2.0.0-p247/gems/rspec-core-2.14.8/lib/rspec/core/runner.rb:80:in `run'
    from /Users/JS/.rvm/gems/ruby-2.0.0-p247/gems/rspec-core-2.14.8/lib/rspec/core/runner.rb:17:in `block in autorun'

I am running MRI Ruby 2.0.0p247 and RSpec 2.14.8. I have tried using versions 1.2.1, 1.3.2 and 2.0.0.beta1 of Fuubar.

--no-color still shows "←[0m" under Windows XP

Running fuubar from the command prompt under Windows XP with the --no-color attribute gives the output below (http://www.robvanderwoude.com/ansi.php suggests that "[0m" is an instruction to "Reset all previous text attributes"):


←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m 45591/45691:
←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m
←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m
←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m
←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m
←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m←[0m
←[0m 45691/45691: 100% |==========================================| Time: 00:01
:01
←[0m
Finished in 1 minute 1.53 seconds
45691 examples, 0 failures

Warnings in Specs break the nice looks of Fuubar

During some request spec, QT gives us a warning:

QFont::setPixelSize: Pixel size <= 0 (0)

We don't seem to be able to remove it anywhere, and it breaks the nice looks of Fuubar like this:

TerminalScreenSnapz001

Any solution for this?

License missing from gemspec

RubyGems.org doesn't report a license for your gem. This is because it is not specified in the gemspec of your last release.

via e.g.

spec.license = 'MIT'
# or
spec.licenses = ['MIT', 'GPL-2']

Including a license in your gemspec is an easy way for rubygems.org and other tools to check how your gem is licensed. As you can image, scanning your repository for a LICENSE file or parsing the README, and then attempting to identify the license or licenses is much more difficult and more error prone. So, even for projects that already specify a license, including a license in your gemspec is a good practice. See, for example, how rubygems.org uses the gemspec to display the rails gem license.

There is even a License Finder gem to help companies/individuals ensure all gems they use meet their licensing needs. This tool depends on license information being available in the gemspec. This is an important enough issue that even Bundler now generates gems with a default 'MIT' license.

I hope you'll consider specifying a license in your gemspec. If not, please just close the issue with a nice message. In either case, I'll follow up. Thanks for your time!

Appendix:

If you need help choosing a license (sorry, I haven't checked your readme or looked for a license file), GitHub has created a license picker tool. Code without a license specified defaults to 'All rights reserved'-- denying others all rights to use of the code.
Here's a list of the license names I've found and their frequencies

p.s. In case you're wondering how I found you and why I made this issue, it's because I'm collecting stats on gems (I was originally looking for download data) and decided to collect license metadata,too, and make issues for gemspecs not specifying a license as a public service :). See the previous link or my blog post about this project for more information.

Whenever running rake spec

rake aborted!
NameError: uninitialized constant RSpec::Core::Version
/Users/streek/.rvm/gems/ruby-2.0.0-p481/gems/rspec-instafail-0.2.5/lib/rspec/instafail.rb:7:in <module:RSpec>' /Users/streek/.rvm/gems/ruby-2.0.0-p481/gems/rspec-instafail-0.2.5/lib/rspec/instafail.rb:1:in<top (required)>'
/Users/streek/.rvm/gems/ruby-2.0.0-p481/gems/fuubar-1.2.1/lib/fuubar.rb:3:in <top (required)>' /Users/streek/.rvm/gems/ruby-2.0.0-p481@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:76:inrequire'
/Users/streek/.rvm/gems/ruby-2.0.0-p481@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:76:in block (2 levels) in require' /Users/streek/.rvm/gems/ruby-2.0.0-p481@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:72:ineach'
/Users/streek/.rvm/gems/ruby-2.0.0-p481@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:72:in block in require' /Users/streek/.rvm/gems/ruby-2.0.0-p481@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:61:ineach'
/Users/streek/.rvm/gems/ruby-2.0.0-p481@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:61:in require' /Users/streek/.rvm/gems/ruby-2.0.0-p481@global/gems/bundler-1.6.2/lib/bundler.rb:132:inrequire'

Use fuubar together with parallel-test?

Hello,

I am using the parallel-tests gem which REALLY REALLY speeds up test time (since we have an 8-core machine to develop on ...). However, looking at the spec results is a mess, since they just get spit out to the console.

Would you be interested in collaborating getting fuubar running with parallel-tests so that you get one progress bar per process, and the failing tests are output cleanly to the console?

Thanks!
Jens

Error when firing rspec

Hi,

I just installed foobar by putting it in the Gemfile and running bundle, but when I try
to run rspec it gives me this error:

/ruby-2.0.0-p0/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:1021:in `require': cannot load such file -- fuubar (LoadError)

It seems that foobar it's there:
$ gem list | grep foo
foobar (0.0.1)

Any clue ?
Cheers

Reduce frequency of status refreshes

We run around a 100,000 tests on our GitHub repository through Travis CI. Apparently Travis CI logs each line refresh that Fuubar generates, and we're hitting the 4 MB limit set on the size of these log files.

Could the number of line refreshes be reduced, e.g. to no more than 1 a second?

Don't list all the RSpec files before running

I have a feature request:

As a developer with a lot of specs
I want this list of files RSpec shows to be summarized
So it won't fill up entire display before running specs

I'd like fuubar to hide the list of files RSpec shows and have it replaced with something like "Running 91 spec files" Or even nicer, grouped by directory: "Running examples for 32 controllers, 5 libs, 63 models and 14 helpers"

Using rspec-rails 3.0.0.beta1 generates a dependency resolution problem

Using rspec-rails 3.0.0.beta1 on a rails 4.1.0.beta1 application, running bundle update produces this output:

% bundle update
Updating git://github.com/elabs/pundit.git
Fetching gem metadata from https://rubygems.org/.......
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "rspec-mocks":
  In Gemfile:
    fuubar (>= 0) ruby depends on
      rspec-mocks (= 2.0.0) ruby

    rspec-rails (~> 3.0.0.beta1) ruby depends on
      rspec-mocks (3.0.0.beta1)

Could not find gem 'chalofa_ruby-progressbar (~> 0.0.9) ruby', which is required by gem 'fuubar (>= 0) ruby', in any of the sources.

Switching the dependency declaration from gem 'fuubar' to gem 'fuubar', github: 'jeffkreeftmeijer/fuubar', then running bundle update produces:

% bundle update
Updating git://github.com/elabs/pundit.git
Updating git://github.com/jeffkreeftmeijer/fuubar.git
Fetching gem metadata from https://rubygems.org/.......
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "rspec-mocks":
  In Gemfile:
    fuubar (>= 0) ruby depends on
      rspec-mocks (~> 2.14.0) ruby

    rspec-rails (~> 3.0.0.beta1) ruby depends on
      rspec-mocks (3.0.0.beta1)

a806825 looks like a fix for this. Seems like there are circumstances where fuubar still requests an older version of rspec-mocks.

/cc @twalpole @jfelchner

Deprecation warnings and other "puts" cause formatting issues

Any output from the app during testing should perhaps be displayed somewhere else instead of at the current cursor - if that is possible.

This will avoid any mis-formatting which I think makes this format at times harder to read than the rspec default.

Is there a known workaround for this by using some kind of STDOUT redirect?

Display currently running spec as part of progress bar

First of all let me thank you for the very neat plugin (which should be a part of RSpec IMO too)!

There is that feature I realized I would like to have:
Display currently running spec as part of the progress bar so that you know what exactly the progress is (compare this to the file copy dialog found in most OSes - it displays overall progress and the file being processed currently).

In my case I notice that some part of the suite is running especially slow and I am interested what kind of specs cause the slowdown (and yeah I know about the --profile option thanks :) )

Support rspec-rails 3.2.

Hi There,

Great little gem by the way. Love the succinct output.

I'm trying to update rspec-rails to 3.2 to avoid an issue with Ruby 2.2.0 and it looks like there are some dependencies in your library on an older version of rspec-expectations. This is the error I get when trying to bundle update rspec-rails:

Bundler could not find compatible versions for gem "rspec-expectations":
  In Gemfile:
    fuubar (>= 0) ruby depends on
      rspec (~> 3.0) ruby depends on
        rspec-expectations (~> 3.1.0) ruby

    rspec-rails (~> 3.2.0) ruby depends on
      rspec-expectations (3.2.0)

Let me know your thoughts.

Thanks!

Josh

No progress output in circleci

In CircleCI when using fuubar we are not getting any progress output. We get the failure reports as soon as a test fails, and the output appears at the end of the test run, but while tests are running there is no feedback as to where in the process they are (or if they are actually progressing at all).

spork -d fails

I am on rails 3.2.1 and spork 1.0.0.rc1
Since upgrade rails spork does not reload models, factories etc...
When I try to see what is cached via spork -d
I get this error

Using RSpec, Unknown
Loading Spork.prefork block...
wrong number of arguments (2 for 1) (ArgumentError)
/Users/andrea/.rvm/gems/ruby-1.9.2-p180-patched/gems/spork-1.0.0rc1/lib/spork/diagnoser.rb:35:in `load'
/Users/andrea/.rvm/gems/ruby-1.9.2-p180-patched/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:245:in `block in load'
/Users/andrea/.rvm/gems/ruby-1.9.2-p180-patched/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:236:in `load_dependency'
/Users/andrea/.rvm/gems/ruby-1.9.2-p180-patched/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:245:in `load'
/Users/andrea/.rvm/gems/ruby-1.9.2-p180-patched/gems/railties-3.2.1/lib/rails/engine.rb:588:in `block (2 levels) in <class:Engine>'
/Users/andrea/.rvm/gems/ruby-1.9.2-p180-patched/gems/railties-3.2.1/lib/rails/engine.rb:587:in `each'
/Users/andrea/.rvm/gems/ruby-1.9.2-p180-patched/gems/railties-3.2.1/lib/rails/engine.rb:587:in `block in <class:Engine>'
/Users/andrea/.rvm/gems/ruby-1.9.2-p180-patched/gems/railties-3.2.1/lib/rails/initializable.rb:30:in `instance_exec'
/Users/andrea/.rvm/gems/ruby-1.9.2-p180-patched/gems/railties-3.2.1/lib/rails/initializable.rb:30:in `run'
/Users/andrea/.rvm/gems/ruby-1.9.2-p180-patched/gems/railties-3.2.1/lib/rails/initializable.rb:55:in `block in run_initializers'
/Users/andrea/.rvm/gems/ruby-1.9.2-p180-patched/gems/railties-3.2.1/lib/rails/initializable.rb:54:in `each'
/Users/andrea/.rvm/gems/ruby-1.9.2-p180-patched/gems/railties-3.2.1/lib/rails/initializable.rb:54:in `run_initializers'
/Users/andrea/.rvm/gems/ruby-1.9.2-p180-patched/gems/railties-3.2.1/lib/rails/application.rb:136:in `initialize!'
/Users/andrea/.rvm/gems/ruby-1.9.2-p180-patched/gems/railties-3.2.1/lib/rails/railtie/configurable.rb:30:in `method_missing'
/Users/andrea/dev/kemen/virgilio/config/environment.rb:8:in `<top (required)>'

Fuubar isn't compatible with rspec 3.0.0.rc1

It looks like something changed in rspec 3.0.0 between beta2 and rc1, since Fuubar no longer works with rspec 3.0.0.rc1

/home/ressu/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/fuubar-2.0.0.beta2/lib/fuubar.rb:32:in `start': undefined local variable or method `configuration' for #<Fuubar:0x007f250877df60> (NameError)
    from /home/ressu/.rbenv/gems/2.1.0/gems/rspec-core-3.0.0.rc1/lib/rspec/core/reporter.rb:137:in `block in notify'
    from /home/ressu/.rbenv/gems/2.1.0/gems/rspec-core-3.0.0.rc1/lib/rspec/core/reporter.rb:136:in `each'
    from /home/ressu/.rbenv/gems/2.1.0/gems/rspec-core-3.0.0.rc1/lib/rspec/core/reporter.rb:136:in `notify'
....

Issues with rspec-instafail 0.2.3

As originally reported in #20 by @nofxx:

rspec-instafail changed things on v0.2.3.
Can't require 'rspec/instafail'. For search purposes:

fuubar.rb:3:in `require': cannot load such file -- rspec/instafail

I won't have a lot of time to look into this soon, but it would be great if somebody could pick this one up. :)

Fix for "irb: warn: can't alias context from irb_context." error

When I use fuubar in a Rails project by including fuubar in my Gemfile:

gem 'fuubar'

I get a warning "irb: warn: can't alias context from irb_context." when I run bundle exec rails c

Sapphire:cms will$ bundle exec rails c
Loading development environment (Rails 4.2.1)
irb: warn: can't alias context from irb_context.
irb(main):001:0>

I believe this started after upgrading to RSpec 3. It's similar to this issue in PaperTrail paper-trail-gem/paper_trail#381

This could be fixed by removing the first line:

require 'rspec'

from fuubar.rb

A work-around until this fix is applied is to change the fuubar gem line to

gem 'fuubar', :require => false

I just realized this can also be fixed by putting the fuubar gem line in the test group

group :test do
  gem 'fuubar'
end

Adding config to .rspec doesn't work

When running rspec --format Fuubar --color spec, everything's perfect. When adding

--format Fuubar
--color

to .rspec or ~/.rspec, it doesn't. Any idea what's going on?

Update

Running rspec does the trick, but I need to rake also take up the arguments correctly.

RSpec 2.1 support

RSpec 2.1 has been released, but the fuubar gem depends on ~> 2.0.1. It should just work with the newer version, could you bump it in the Gemfile?

uninitialized constant RSpec::Core::Hooks

Whenever I run Rake, I get this error:

rake aborted!
uninitialized constant RSpec::Core::Hooks
/home/alessandro/.rvm/gems/ruby-2.0.0-p353@herudio/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:32:in `<class:Configuration>'
/home/alessandro/.rvm/gems/ruby-2.0.0-p353@herudio/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:31:in `<module:Core>'
/home/alessandro/.rvm/gems/ruby-2.0.0-p353@herudio/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:7:in `<module:RSpec>'
/home/alessandro/.rvm/gems/ruby-2.0.0-p353@herudio/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:6:in `<top (required)>'
/home/alessandro/.rvm/gems/ruby-2.0.0-p353@herudio/gems/fuubar-1.3.0/lib/fuubar.rb:1:in `<top (required)>'
/home/alessandro/.rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
/home/alessandro/.rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
/home/alessandro/.rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
/home/alessandro/.rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
/home/alessandro/.rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
/home/alessandro/.rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
/home/alessandro/.rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
/home/alessandro/projects/herudio/config/application.rb:7:in `<top (required)>'
/home/alessandro/projects/herudio/Rakefile:4:in `require'
/home/alessandro/projects/herudio/Rakefile:4:in `<top (required)>'
/home/alessandro/.rvm/gems/ruby-2.0.0-p353@global/gems/rake-10.1.0/lib/rake/rake_module.rb:25:in `load'
/home/alessandro/.rvm/gems/ruby-2.0.0-p353@global/gems/rake-10.1.0/lib/rake/rake_module.rb:25:in `load_rakefile'
/home/alessandro/.rvm/gems/ruby-2.0.0-p353@global/gems/rake-10.1.0/lib/rake/application.rb:637:in `raw_load_rakefile'
/home/alessandro/.rvm/gems/ruby-2.0.0-p353@global/gems/rake-10.1.0/lib/rake/application.rb:94:in `block in load_rakefile'
/home/alessandro/.rvm/gems/ruby-2.0.0-p353@global/gems/rake-10.1.0/lib/rake/application.rb:165:in `standard_exception_handling'
/home/alessandro/.rvm/gems/ruby-2.0.0-p353@global/gems/rake-10.1.0/lib/rake/application.rb:93:in `load_rakefile'
/home/alessandro/.rvm/gems/ruby-2.0.0-p353@global/gems/rake-10.1.0/lib/rake/application.rb:77:in `block in run'
/home/alessandro/.rvm/gems/ruby-2.0.0-p353@global/gems/rake-10.1.0/lib/rake/application.rb:165:in `standard_exception_handling'
/home/alessandro/.rvm/gems/ruby-2.0.0-p353@global/gems/rake-10.1.0/lib/rake/application.rb:75:in `run'
/home/alessandro/.rvm/gems/ruby-2.0.0-p353@global/gems/rake-10.1.0/bin/rake:33:in `<top (required)>'
/home/alessandro/.rvm/gems/ruby-2.0.0-p353@global/bin/rake:23:in `load'
/home/alessandro/.rvm/gems/ruby-2.0.0-p353@global/bin/rake:23:in `<main>'
/home/alessandro/.rvm/gems/ruby-2.0.0-p353@global/bin/ruby_executable_hooks:15:in `eval'
/home/alessandro/.rvm/gems/ruby-2.0.0-p353@global/bin/ruby_executable_hooks:15:in `<main>'

Here's my Gemfile:

source 'https://rubygems.org'
ruby '2.0.0'

# Rails
gem 'rails', '4.0.2'

# Users
gem 'cancan'
gem 'devise'
gem 'rolify'

gem 'figaro'

# Assets preprocessors
gem 'sass-rails', '~> 4.0.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'

# Assets libs
gem 'jquery-rails'
gem 'turbolinks'
gem 'foundation-rails'

# Templating
gem 'haml-rails'

# Active Record
gem 'pg'

# Forms
gem 'simple_form'

# JS runtime
gem 'therubyracer', platform: :ruby

# Web server
gem 'thin'

# I18n
gem 'rails-i18n'
gem 'devise-i18n'

group :development do
  # Error management
  gem 'better_errors'
  gem 'binding_of_caller', platforms: [:mri_19, :mri_20, :rbx]

  # Templating
  gem 'html2haml'

  # Disable assets logging
  gem 'quiet_assets'
end

group :development, :test do
  # RSpec
  gem 'rspec-rails'
  gem 'fuubar'

  # Factories
  gem 'factory_girl_rails'
end

group :test do
  # Integration tests
  gem 'capybara'

  # Database testing
  gem 'database_cleaner', '1.0.1'

  # Email testing
  gem 'email_spec'
end

rake's version: 10.1.0
rspec-core's version: 2.14.7
fuubar's version: 1.3.0

undefined method `bar_mark=' for #<ProgressBar:0/2043> (NoMethodError)

Hello,

When trying to run my specsuite I'm getting the following error:

/Users/cassiommc/.rvm/gems/ree-1.8.7-2010.02@csh-rails3/gems/fuubar-0.0.2/lib/fuubar.rb:14:in start': undefined methodbar_mark=' for #ProgressBar:0/2043 (NoMethodError)
from /Users/cassiommc/.rvm/gems/ree-1.8.7-2010.02@csh-rails3/gems/rspec-core-2.1.0/lib/rspec/core/reporter.rb:75:in send' from /Users/cassiommc/.rvm/gems/ree-1.8.7-2010.02@csh-rails3/gems/rspec-core-2.1.0/lib/rspec/core/reporter.rb:75:innotify'
from /Users/cassiommc/.rvm/gems/ree-1.8.7-2010.02@csh-rails3/gems/rspec-core-2.1.0/lib/rspec/core/reporter.rb:74:in each' from /Users/cassiommc/.rvm/gems/ree-1.8.7-2010.02@csh-rails3/gems/rspec-core-2.1.0/lib/rspec/core/reporter.rb:74:innotify'
from /Users/cassiommc/.rvm/gems/ree-1.8.7-2010.02@csh-rails3/gems/rspec-core-2.1.0/lib/rspec/core/reporter.rb:34:in start' from /Users/cassiommc/.rvm/gems/ree-1.8.7-2010.02@csh-rails3/gems/rspec-core-2.1.0/lib/rspec/core/reporter.rb:10:inreport'
from /Users/cassiommc/.rvm/gems/ree-1.8.7-2010.02@csh-rails3/gems/rspec-core-2.1.0/lib/rspec/core/command_line.rb:24:in run' from /Users/cassiommc/.rvm/gems/ree-1.8.7-2010.02@csh-rails3/gems/rspec-core-2.1.0/lib/rspec/core/runner.rb:55:inrun_in_process'
from /Users/cassiommc/.rvm/gems/ree-1.8.7-2010.02@csh-rails3/gems/rspec-core-2.1.0/lib/rspec/core/runner.rb:46:in run' from /Users/cassiommc/.rvm/gems/ree-1.8.7-2010.02@csh-rails3/gems/rspec-core-2.1.0/lib/rspec/core/runner.rb:10:inautorun'
from /Users/cassiommc/.rvm/gems/ree-1.8.7-2010.02@csh-rails3/bin/rspec:19

I'm running Rspec 2.1, Rails 3.0.3 and fuubar 0.0.2

Thanks!

Interactive Failure options

Fuubar looks awesome. Would be great if there was an interactive prompt when a failure happens. Something like:

  • continue
  • retry
  • open debugger
  • stop

I think that'd make it so I could iterate on broken specs much faster

Fails when there are zero tests in the spec file

activesupport-4.0.2/lib/active_support/core_ext/time/calculations.rb:263:in `-': can't convert nil into an exact number (TypeError)
  from activesupport-4.0.2/lib/active_support/core_ext/time/calculations.rb:263:in `minus_with_duration'
  from activesupport-4.0.2/lib/active_support/core_ext/time/calculations.rb:274:in `minus_with_coercion'
  from ruby-progressbar-1.4.0/lib/ruby-progressbar/components/timer.rb:9:in `start'
  from ruby-progressbar-1.4.0/lib/ruby-progressbar/base.rb:162:in `with_timers'
  from ruby-progressbar-1.4.0/lib/ruby-progressbar/base.rb:30:in `block in start'
  from ruby-progressbar-1.4.0/lib/ruby-progressbar/base.rb:173:in `with_update'
  from ruby-progressbar-1.4.0/lib/ruby-progressbar/base.rb:28:in `start'
  from fuubar-1.3.2/lib/fuubar.rb:30:in `block in start'
  from fuubar-1.3.2/lib/fuubar.rb:81:in `with_current_color'
  from fuubar-1.3.2/lib/fuubar.rb:30:in `start'
  from rspec-core-2.14.7/lib/rspec/core/reporter.rb:127:in `block in notify'
  from rspec-core-2.14.7/lib/rspec/core/reporter.rb:126:in `each'
  from rspec-core-2.14.7/lib/rspec/core/reporter.rb:126:in `notify'
  from rspec-core-2.14.7/lib/rspec/core/reporter.rb:66:in `start'
  from rspec-core-2.14.7/lib/rspec/core/reporter.rb:56:in `report'
  from rspec-core-2.14.7/lib/rspec/core/command_line.rb:25:in `run'
  from rspec-core-2.14.7/lib/rspec/core/runner.rb:80:in `run'
  from rspec-core-2.14.7/lib/rspec/core/runner.rb:17:in `block in autorun'

2.0.0.rc1: already initialized constant warning with rspec 3

Hello, I'm using fuubar 2.0.0.rc1 on a rails 4.1.1 project that is utilizing rspec 3.0.2.

I have set my .rspec file as follows:

--format Fuubar
--color

And have not made any other fuubar related config settings in my app.

When I run rspec, I get the following output:

/usr/local/opt/rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rspec-core-3.0.0/lib/rspec/core/formatters/console_codes.rb:8: warning: already initialized constant RSpec::Core::Formatters::ConsoleCodes::VT100_CODES

/usr/local/Cellar/rbenv/0.4.0/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rspec-core-3.0.0/lib/rspec/core/formatters/console_codes.rb:8: warning: previous definition of VT100_CODES was here

/usr/local/opt/rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rspec-core-3.0.0/lib/rspec/core/formatters/console_codes.rb:21: warning: already initialized constant RSpec::Core::Formatters::ConsoleCodes::VT100_CODE_VALUES

/usr/local/Cellar/rbenv/0.4.0/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rspec-core-3.0.0/lib/rspec/core/formatters/console_codes.rb:21: warning: previous definition of VT100_CODE_VALUES was here

Here is a link to the rspec-core code that the above is complaining about.

I'm not sure how to fix the problem, but I figured I should let you know about it.

Deprecation warning with Rspec 3

I'm using rspec 3.0.0 and get the message when run rspec with Fuubar formatter.

Deprecation Warnings:

The Fuubar formatter uses the deprecated formatter interface not supported directly by RSpec 3. To continue to use this formatter you must install the rspec-legacy_formatters gem, which provides support for legacy formatters or upgrade the formatter to a compatible version. Formatter added at: /Users/user/.rvm/gems/ruby-1.9.3-p547/gems/zeus-0.15.1/lib/zeus/rails.rb:202:in `test'

If you need more of the backtrace for any of these deprecations to
identify where to make the necessary changes, you can configure
config.raise_errors_for_deprecations!, and it will turn the
deprecation warnings into errors, giving you the full backtrace.

I guess it should be fixed instead of using legacy formatters?

ArgumentError: negative argument, with spork

When using fuubar with Spork I get this error:

Exception encountered: #<ArgumentError: negative argument>
backtrace:
/home/hector/.rvm/gems/ruby-1.9.2-p0/gems/ruby-progressbar-0.0.9/lib/progressbar.rb:180:in `*'
/home/hector/.rvm/gems/ruby-1.9.2-p0/gems/ruby-progressbar-0.0.9/lib/progressbar.rb:180:in `clear'
/home/hector/.rvm/gems/ruby-1.9.2-p0/gems/ruby-progressbar-0.0.9/lib/progressbar.rb:29:in `initialize'
/home/hector/.rvm/gems/ruby-1.9.2-p0/bundler/gems/fuubar-12c417da6d58/lib/fuubar.rb:12:in `new'
/home/hector/.rvm/gems/ruby-1.9.2-p0/bundler/gems/fuubar-12c417da6d58/lib/fuubar.rb:12:in `start'
/home/hector/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.3.1/lib/rspec/core/reporter.rb:75:in `block in notify'
/home/hector/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.3.1/lib/rspec/core/reporter.rb:74:in `each'
/home/hector/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.3.1/lib/rspec/core/reporter.rb:74:in `notify'
/home/hector/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.3.1/lib/rspec/core/reporter.rb:34:in `start'
/home/hector/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.3.1/lib/rspec/core/reporter.rb:10:in `report'
/home/hector/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.3.1/lib/rspec/core/command_line.rb:24:in `run'
/home/hector/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.3.1/lib/rspec/monkey/spork/test_framework/rspec.rb:4:in `run_tests'
/home/hector/.rvm/gems/ruby-1.9.2-p0/gems/spork-0.9.0.rc2/lib/spork/run_strategy/forking.rb:13:in `block in run'
/home/hector/.rvm/gems/ruby-1.9.2-p0/gems/spork-0.9.0.rc2/lib/spork/forker.rb:21:in `block in initialize'
/home/hector/.rvm/gems/ruby-1.9.2-p0/gems/spork-0.9.0.rc2/lib/spork/forker.rb:18:in `fork'
/home/hector/.rvm/gems/ruby-1.9.2-p0/gems/spork-0.9.0.rc2/lib/spork/forker.rb:18:in `initialize'
/home/hector/.rvm/gems/ruby-1.9.2-p0/gems/spork-0.9.0.rc2/lib/spork/run_strategy/forking.rb:9:in `new'
/home/hector/.rvm/gems/ruby-1.9.2-p0/gems/spork-0.9.0.rc2/lib/spork/run_strategy/forking.rb:9:in `run'
/home/hector/.rvm/gems/ruby-1.9.2-p0/gems/spork-0.9.0.rc2/lib/spork/server.rb:47:in `run'
/home/hector/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/drb/drb.rb:1558:in `perform_without_block'
/home/hector/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/drb/drb.rb:1518:in `perform'
/home/hector/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/drb/drb.rb:1592:in `block (2 levels) in main_loop'
/home/hector/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/drb/drb.rb:1588:in `loop'
/home/hector/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/drb/drb.rb:1588:in `block in main_loop'

It works fine when using without Spork. Guys in the office are not having this issue since they are using a Mac.
My configuration is Ubuntu OS, ruby 1.9.2-p0, rails 3.0.3, rspec 2.3.0 and fuubar 0.0.3

2/1 examples?

2/1:         100% |==========================================| Time: 00:00:02

zeus + guard = fuubar exception

When using fuubar with zeus + guard + rspec I'm getting the following exception thrown.

I tried specifying the method in my spec_helper.rb like so with no luck

RSpec.configure do |config|
  config.fuubar_progress_bar_options = { :format => 'My Fuubar! <%B> %p%% %a' }e
  ...
end
Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/fuubar-1.3.2/lib/fuubar.rb:17:in `initialize': undefined method `fuubar_progress_bar_options' for #<RSpec::Core::Configuration:0x007ff2f9b530d0> (NoMethodError)
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rspec-core-2.14.8/lib/rspec/core/configuration.rb:578:in `new'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rspec-core-2.14.8/lib/rspec/core/configuration.rb:578:in `add_formatter'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rspec-core-2.14.8/lib/rspec/core/configuration_options.rb:78:in `block in load_formatters_into'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rspec-core-2.14.8/lib/rspec/core/configuration_options.rb:78:in `each'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rspec-core-2.14.8/lib/rspec/core/configuration_options.rb:78:in `load_formatters_into'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rspec-core-2.14.8/lib/rspec/core/configuration_options.rb:28:in `configure'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rspec-core-2.14.8/lib/rspec/core/command_line.rb:21:in `run'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rspec-core-2.14.8/lib/rspec/core/runner.rb:80:in `run'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rspec-core-2.14.8/lib/rspec/core/runner.rb:17:in `block in autorun'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/zeus-0.13.3/lib/zeus.rb:103:in `fork'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/zeus-0.13.3/lib/zeus.rb:103:in `command'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/zeus-0.13.3/lib/zeus.rb:80:in `block (3 levels) in go'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/zeus-0.13.3/lib/zeus.rb:80:in `fork'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/zeus-0.13.3/lib/zeus.rb:80:in `block (2 levels) in go'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/zeus-0.13.3/lib/zeus.rb:73:in `each'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/zeus-0.13.3/lib/zeus.rb:73:in `block in go'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/zeus-0.13.3/lib/zeus.rb:62:in `loop'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/zeus-0.13.3/lib/zeus.rb:62:in `go'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/zeus-0.13.3/lib/zeus.rb:78:in `block (3 levels) in go'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/zeus-0.13.3/lib/zeus.rb:78:in `fork'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/zeus-0.13.3/lib/zeus.rb:78:in `block (2 levels) in go'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/zeus-0.13.3/lib/zeus.rb:73:in `each'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/zeus-0.13.3/lib/zeus.rb:73:in `block in go'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/zeus-0.13.3/lib/zeus.rb:62:in `loop'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/zeus-0.13.3/lib/zeus.rb:62:in `go'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/zeus-0.13.3/lib/zeus.rb:78:in `block (3 levels) in go'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/zeus-0.13.3/lib/zeus.rb:78:in `fork'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/zeus-0.13.3/lib/zeus.rb:78:in `block (2 levels) in go'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/zeus-0.13.3/lib/zeus.rb:73:in `each'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/zeus-0.13.3/lib/zeus.rb:73:in `block in go'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/zeus-0.13.3/lib/zeus.rb:62:in `loop'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/zeus-0.13.3/lib/zeus.rb:62:in `go'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/zeus-0.13.3/lib/zeus.rb:78:in `block (3 levels) in go'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/zeus-0.13.3/lib/zeus.rb:78:in `fork'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/zeus-0.13.3/lib/zeus.rb:78:in `block (2 levels) in go'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/zeus-0.13.3/lib/zeus.rb:73:in `each'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/zeus-0.13.3/lib/zeus.rb:73:in `block in go'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/zeus-0.13.3/lib/zeus.rb:62:in `loop'
    from /Users/karolis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/zeus-0.13.3/lib/zeus.rb:62:in `go'
    from -e:1:in `<main>

1.0.0 and the legacy branch

Hey everyone,

I just pushed 1.0.0.rc1, as Fuubar is more than one year old and was still on 0.0.6 somehow. So, please try it out so we can get 1.0 final out soon. :)

I've had a short chat with @elia (#5 (comment)) and I decided to package the legacy branch up in a gem anyway after 1.0 is released. It might be a good idea to use 0.1.x versions for that.

What do you think? :)

Fuubar prints undefined method 'backtrace'

Hi, I'm workinng to create a C library(https://github.com/tomas-stefano/relation) and when I made the wrapper in Ruby using RSpec with fuubar ... prints in a failed spec:

  `method_missing': undefined method `backtrace' for nil:NilClass

I begin to investigate thinking this is RSpec bug, but I could not reproduce this bug in RSpec. So after seeing a little more in the backtrace I see:

   from /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.2.0/lib/rspec/core/formatters/base_formatter.rb:117:in `read_failed_line'
from /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rspec-instafail-0.1.4/lib/rspec/instafail/rspec_2.rb:13:in `example_failed'
from /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/fuubar-0.0.1/lib/fuubar.rb:40:in `example_failed'
from /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.2.0/lib/rspec/core/reporter.rb:75:in `block in notify'

And I see that fuubar in line 40 call the example_failed that pass a variable called exception in the args being nil (why is raise the Exception ...)
You can reproduce the bug in this commit/tree: https://github.com/tomas-stefano/relation/tree/779d425d5a17271f0741762de5a4548483546c1f/ruby_wrapper

just type:

$ rake compile && rspec spec

And you see this error.

But when I run with the RSpec normally:

 $ rspec --format progress 

Just when I expected:

   Finished in 0.00472 seconds
   25 examples, 1 failure

Thanks =-)

undefined method `bar_mark=' for ProgressBar

Hi,

When I'm trying to use fuubar formatter against my project using Rails2.3.10, RSpec-1.3 and metric_fu, it raise undefined method bar_mark for PrograssBar instance.

Because the ruby-progressbar gem required by fuubar conflicts with 'progressbar' gem required by 'rails_best_practices' (it's required by metric_fu).

What should I do to resolve this problem?

Thanks,

undefined method `colour' for {}:Hash

This looks fantastic and thank you so much for supporting rspec 1.3.x. However, this is what I'm getting:

/usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/formatter/base_text_formatter.rb:97:in `colour?': undefined method `colour' for {}:Hash (NoMethodError)                                                                                   
        from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/formatter/base_text_formatter.rb:114:in `colour' 
        from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/formatter/base_text_formatter.rb:131:in `red'    
        from /home/hanna/.bundle/ruby/1.8/gems/rspec-instafail-0.1.4/lib/rspec/instafail/rspec_1.rb:10:in `example_failed'  
        from /home/hanna/.bundle/ruby/1.8/bundler/gems/fuubar-a6f0bb6ab6e80322db716ae98b0c980efed840df-legacy/lib/fuubar.rb:41:in `example_failed'                                                                                                      
        from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/reporter.rb:44:in `example_failed'               
        from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/reporter.rb:43:in `each'                         
        from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/reporter.rb:43:in `example_failed'               
        from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/reporter.rb:35:in `example_finished'             
        from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/example/example_methods.rb:55:in `execute'              
        from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/example/example_group_methods.rb:214:in `run_examples'  
        from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/example/example_group_methods.rb:212:in `each'          
        from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/example/example_group_methods.rb:212:in `run_examples'  
        from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/example/example_group_methods.rb:103:in `run'           
        from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:23:in `run'              
        from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:22:in `each'             
        from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:22:in `run'              
        from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/options.rb:152:in `run_examples'                 
        from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/command_line.rb:9:in `run'                       
        from /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/bin/spec:5                                                       
rake aborted!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.