Hello,

I want to use the minitest/spec DSL inside an
ActionDispatch::IntegrationTest but I'm getting no-method errors:

#-----------------------------------------------------------------
# cat test/integration/wacky_integration_test.rb
#-----------------------------------------------------------------
require 'test_helper'
require 'minitest/spec'

class WackyIntegrationTest < ActionDispatch::IntegrationTest
  before do
    p :before
  end

  describe 'test' do
    it 'should be wacky' do
      (2 + 2).must_equal 4
    end
  end
end

#-----------------------------------------------------------------
# ruby -Ilib:test test/integration/wacky_integration_test.rb
#-----------------------------------------------------------------
test/integration/wacky_integration_test.rb:5:in
`<class:WackyIntegrationTest>': undefined method `before' for
WackyIntegrationTest:Class (NoMethodError)
  from test/integration/wacky_integration_test.rb:4:in `<main>'


Any ideas on how to inject the minitest/spec DSL into IntegrationTest?

Thanks for your consideration.

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to