13 Apr '16, 3pm

Refactor away duplication in your RSpec tests using the Parameterized Test Method

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found! Refactor away duplication in your RSpec tests using the Parameterized Test Method by Pat Maddox — Yesterday What do you do when you need to run the same test multiple times, but with different parameters? If you copy and paste the test, you end up with a hard-to-read test file. You can’t easily tell how the tests differ from one another. Parameterized test method to the rescue! Post a comment You can use basic HTML markup (e.g. <a>) or Markdown. Authenticate with GitHub As you are not logged in, you will be directed via GitHub to signup or sign in

Full article: http://www.rubyflow.com/p/t6zl6d-refactor-away-duplicatio...

Tweets

test: test

seobook.com 14 Apr '16, 1pm

#ruby-on-rails tutorial: could not pass test 10...

abizy.com 14 Apr '16, 5pm

We do not share, store or cache any illegal files on this blog. We only share digital contents those are licensed under “C...

#select a value and charge the method result in...

abizy.com 16 Apr '16, 4pm

We do not share, store or cache any illegal files on this blog. We only share digital contents those are licensed under “C...

#Calling name method on current_user causes tes...

abizy.com 16 Apr '16, 10pm

We do not share, store or cache any illegal files on this blog. We only share digital contents those are licensed under “C...

What Is the KonMari Method, and How Can It Help?

payless.com 15 Apr '16, 10pm

Clutter. If you're anything like me, you have it, and you may have heard about this new method for getting rid of it. But ...