Skip to content

Instantly share code, notes, and snippets.

@gmas
Created November 2, 2012 00:51
Show Gist options
  • Save gmas/3997938 to your computer and use it in GitHub Desktop.
Save gmas/3997938 to your computer and use it in GitHub Desktop.
1981:cms $ rspec ./spec/models/sqs_queue_processor_spec.rb -fs --color
/Users/xxx.yyy/.rvm/gems/ruby-1.9.3-p286@mew_cms/gems/padrino-core-0.10.6/lib/padrino-core/reloader.rb:106:in `block in lock!': undefined method `split' for name(.):XPath::Expression::Name (NoMethodError)
from /Users/xxx.yyy/.rvm/gems/ruby-1.9.3-p286@mew_cms/gems/padrino-core-0.10.6/lib/padrino-core/reloader.rb:106:in `map'
from /Users/xxx.yyy/.rvm/gems/ruby-1.9.3-p286@mew_cms/gems/padrino-core-0.10.6/lib/padrino-core/reloader.rb:106:in `lock!'
from /Users/xxx.yyy/.rvm/gems/ruby-1.9.3-p286@mew_cms/gems/padrino-core-0.10.6/lib/padrino-core/loader.rb:68:in `load!'
from /Users/xxx.yyy/Documents/work/cms/config/boot.rb:66:in `<top (required)>'
from /Users/xxx.yyy/Documents/work/cms/spec/spec_helper.rb:2:in `require'
from /Users/xxx.yyy/Documents/work/cms/spec/spec_helper.rb:2:in `<top (required)>'
from /Users/xxx.yyy/Documents/work/cms/spec/models/sqs_queue_processor_spec.rb:1:in `require'
from /Users/xxx.yyy/Documents/work/cms/spec/models/sqs_queue_processor_spec.rb:1:in `<top (required)>' from /Users/xxx.yyy/.rvm/gems/ruby-1.9.3-p286@mew_cms/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `load'
from /Users/xxx.yyy/.rvm/gems/ruby-1.9.3-p286@mew_cms/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `block in load_spec_files' from /Users/xxx.yyy/.rvm/gems/ruby-1.9.3-p286@mew_cms/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `map'
from /Users/xxx.yyy/.rvm/gems/ruby-1.9.3-p286@mew_cms/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `load_spec_files' from /Users/xxx.yyy/.rvm/gems/ruby-1.9.3-p286@mew_cms/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:22:in `run'
from /Users/xxx.yyy/.rvm/gems/ruby-1.9.3-p286@mew_cms/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run' from /Users/xxx.yyy/.rvm/gems/ruby-1.9.3-p286@mew_cms/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `block in autorun'
1981:cms $ bundle show xpath
/Users/xxx.yyy/.rvm/gems/ruby-1.9.3-p286@mew_cms/gems/xpath-0.1.4
PADRINO_ENV = 'test' unless defined?(PADRINO_ENV)
require File.expand_path(File.dirname(__FILE__) + "/../config/boot")
RSpec.configure do |conf|
conf.include Rack::Test::Methods
conf.include RSpec::Padrino
conf.around(:each) do |example|
Sequel::Model.db.transaction do
example.call
raise Sequel::Error::Rollback
end
end
end
def app
##
# You can handle all padrino applications using instead:
# Padrino.application
Padrino.application
#SampleActionupdater.tap { |app| }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment