This file contains hidden or 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
/* Localized versions of Info.plist keys */ | |
"Credits" = "クレジット"; | |
"Here are some great libraries I used to create this application:" = "これらの素晴らしいライブラリを使ってこのアプリを開発しました:"; | |
"About" = "このアプリについて"; | |
"Thank You" = "ありがとう"; | |
"Thank you to the amazing team at GitHub for creating a great product, without their hard work, none of this would have been possible." = "GitHub社の皆さんにお礼を言いたいと思います。GitHubのスタッフの大変な苦労が無ければ、このようなアプリは作れませんでした。"; | |
"About the Developer" = "このアプリのデベロッパーについて"; | |
"Icon Design" = "アイコンのデザイン"; |
This file contains hidden or 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
# Use: it { should accept_nested_attributes_for(:association_name).and_accept({valid_values => true}).but_reject({ :reject_if_nil => nil })} | |
RSpec::Matchers.define :accept_nested_attributes_for do |association| | |
match do |model| | |
@model = model | |
@nested_att_present = model.respond_to?("#{association}_attributes=".to_sym) | |
if @nested_att_present && @reject | |
model.send("#{association}_attributes=".to_sym,[@reject]) | |
@reject_success = model.send("#{association}").empty? | |
end | |
model.send("#{association}").clear |