Skip to content

Commit

Permalink
Bugfix: Fix duplicate constant warnings
Browse files Browse the repository at this point in the history
From the RC to the final release, RSpec changed their base formatter so that it
would include `rspec/core/formatters/console_codes`.  Due to this, and because
we were requiring it in fuubar as well, users were getting warning about the
fact that constants had already been defined.

Now we're just requiring `rspec/core/formatters/base_text_formatter` and
allowing it to require `console_codes` for us.

Issue URLs:
  * #69
  * #70
  * #72

Actions:
  References #69
  References #70
  References #72

--------------------------------------------------------------------------------
  • Loading branch information
plukevdh authored and jfelchner committed Aug 7, 2014
1 parent 4a258b3 commit 5af8a33
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/fuubar.rb
@@ -1,6 +1,5 @@
require 'rspec'
require 'rspec/core/formatters/base_text_formatter'
require 'rspec/core/formatters/console_codes'
require 'ruby-progressbar'

RSpec.configuration.add_setting :fuubar_progress_bar_options, :default => {}
Expand Down

0 comments on commit 5af8a33

Please sign in to comment.