Created
May 10, 2012 12:57
-
-
Save fukajun/2652860 to your computer and use it in GitHub Desktop.
2つのコントローラーで共通するアクションのテスト
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ???controller_spec.rb | |
[AController, BController].each do |cotroller| | |
describe controller do | |
it do | |
#共通するテスト | |
end | |
end | |
end | |
# a_controller_spec.rb | |
describe AController do | |
it do | |
#Aのみのテスト | |
end | |
end | |
# b_controller_spec.rb | |
describe BController do | |
it do | |
##Bのみのテスト | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment