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:in
block 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:in
each_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:in
block 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:in
notify'
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:in
ensure 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:in
run'
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:in
test'
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:in
fork'
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: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:80:in fork' from /Users/example/.rvm/gems/ruby-2.0.0-p247@example/gems/zeus-0.13.4.pre2/lib/zeus.rb:80: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:in each' 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:in loop' 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: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:in
fork'
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:in
each'
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:in
loop'
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: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:in fork' 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:in each' 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:in loop' 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: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:in
fork'
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:in
each'
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:in
loop'
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
+1
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.