blowmage / minitest-rails-capybara

Capybara integration for MiniTest::Rails
http://blowmage.com/minitest-rails-capybara
MIT License
131 stars 40 forks source link

Tests Fail if you Have a Feature Method In Your Model #17

Closed dbkbali closed 10 years ago

dbkbali commented 11 years ago

I am running into a problem in my tests because a conflict between a feature object/method I have defined on my model

class Listing

embeds_one :feature

end

Tests start failing when I use this gem because of this code and when I make a call to listing.feature

lib/minitest/rails/capybara.rb:41:in `feature'

module Kernel # :nodoc: def feature desc, &blk describe "#{desc} Feature Test", &blk end end

would be great if I dont have to rename all my models!

For now have reverted to the previous gem version, if you have any suggestions how I can avoid this conflict would be much appreciated.

Thanks for the great contribution for minitest, really enjoying using this in my testing framework!

blowmage commented 10 years ago

Fixed in fac9eeab20778e9caef2858c95bfd19fc0714ec6.