tpope/fivemat

fivemat-1.2.1/lib/fivemat/rspec.rb:47:in `pending_fixed?': uninitialized constant RSpec::Core::PendingExampleFixedError (NameError)

zekus opened this issue · 6 comments

I suddenly have this error after upgrading Rspec to the latest stable:

/Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/fivemat-1.2.1/lib/fivemat/rspec.rb:47:in pending_fixed?': uninitialized constant RSpec::Core::PendingExampleFixedError (NameError) from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/rspec-core-2.14.6/lib/rspec/core/formatters/base_text_formatter.rb:24:inblock in dump_failures'
from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/rspec-core-2.14.6/lib/rspec/core/formatters/base_text_formatter.rb:22:in each' from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/rspec-core-2.14.6/lib/rspec/core/formatters/base_text_formatter.rb:22:ineach_with_index'
from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/rspec-core-2.14.6/lib/rspec/core/formatters/base_text_formatter.rb:22:in dump_failures' from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/rspec-core-2.14.6/lib/rspec/core/reporter.rb:127:inblock in notify'
from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/rspec-core-2.14.6/lib/rspec/core/reporter.rb:126:in each' from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/rspec-core-2.14.6/lib/rspec/core/reporter.rb:126:innotify'
from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/rspec-core-2.14.6/lib/rspec/core/reporter.rb:109:in finish' from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/rspec-core-2.14.6/lib/rspec/core/reporter.rb:60:inensure in report'
from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/rspec-core-2.14.6/lib/rspec/core/reporter.rb:60:in report' from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/rspec-core-2.14.6/lib/rspec/core/command_line.rb:25:inrun'
from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/rspec-core-2.14.6/lib/rspec/core/runner.rb:80:in run' from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/zeus-0.13.4.pre2/lib/zeus/rails.rb:198:intest'
from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/zeus-0.13.4.pre2/lib/zeus.rb:116:in block in command' from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/zeus-0.13.4.pre2/lib/zeus.rb:103:infork'
from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/zeus-0.13.4.pre2/lib/zeus.rb:103:in command' from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/zeus-0.13.4.pre2/lib/zeus.rb:80:inblock (3 levels) in go'
from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/zeus-0.13.4.pre2/lib/zeus.rb:80:in fork' from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/zeus-0.13.4.pre2/lib/zeus.rb:80:inblock (2 levels) in go'
from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/zeus-0.13.4.pre2/lib/zeus.rb:73:in each' from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/zeus-0.13.4.pre2/lib/zeus.rb:73:inblock in go'
from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/zeus-0.13.4.pre2/lib/zeus.rb:62:in loop' from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/zeus-0.13.4.pre2/lib/zeus.rb:62:ingo'
from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/zeus-0.13.4.pre2/lib/zeus.rb:78:in block (3 levels) in go' from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/zeus-0.13.4.pre2/lib/zeus.rb:78:infork'
from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/zeus-0.13.4.pre2/lib/zeus.rb:78:in block (2 levels) in go' from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/zeus-0.13.4.pre2/lib/zeus.rb:73:ineach'
from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/zeus-0.13.4.pre2/lib/zeus.rb:73:in block in go' from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/zeus-0.13.4.pre2/lib/zeus.rb:62:inloop'
from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/zeus-0.13.4.pre2/lib/zeus.rb:62:in go' from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/zeus-0.13.4.pre2/lib/zeus.rb:78:inblock (3 levels) in go'
from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/zeus-0.13.4.pre2/lib/zeus.rb:78:in fork' from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/zeus-0.13.4.pre2/lib/zeus.rb:78:inblock (2 levels) in go'
from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/zeus-0.13.4.pre2/lib/zeus.rb:73:in each' from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/zeus-0.13.4.pre2/lib/zeus.rb:73:inblock in go'
from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/zeus-0.13.4.pre2/lib/zeus.rb:62:in loop' from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/zeus-0.13.4.pre2/lib/zeus.rb:62:ingo'
from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/zeus-0.13.4.pre2/lib/zeus.rb:78:in block (3 levels) in go' from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/zeus-0.13.4.pre2/lib/zeus.rb:78:infork'
from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/zeus-0.13.4.pre2/lib/zeus.rb:78:in block (2 levels) in go' from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/zeus-0.13.4.pre2/lib/zeus.rb:73:ineach'
from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/zeus-0.13.4.pre2/lib/zeus.rb:73:in block in go' from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/zeus-0.13.4.pre2/lib/zeus.rb:62:inloop'
from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/zeus-0.13.4.pre2/lib/zeus.rb:62:in go' from -e:1:in

'

that should be because rspec moved it to RSpec::Core::Pending::PendingExampleFixedError

I have the same error too

Anyone want to take a stab at a backwards compatible patch?

On Sat, Oct 19, 2013 at 10:15 AM, Philippe Dionne
notifications@github.comwrote:

+1


Reply to this email directly or view it on GitHubhttps://github.com//issues/14#issuecomment-26650513
.

Quick temporary fix is just to alias that class in spec_helper.rb like:

# Temporary fix for FiveMat RSpec incompatibility
RSpec::Core::PendingExampleFixedError = RSpec::Core::Pending::PendingExampleFixedError

I'm going to try and update fivemat to RSpec 3 today, will tackle this.